The Labs \ Source Viewer \ SSCLI \ System.Runtime.Remoting.Contexts \ IContributeObjectSink

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. // The IContributeObjectSink interface is implemented by
  16. // context properties in a Context that wish to contribute
  17. // an object specific interception sink on the server end of
  18. // a remoting call.
  19. //
  20. namespace System.Runtime.Remoting.Contexts
  21. {
  22.    
  23.     using System.Runtime.InteropServices;
  24.     using System.Runtime.Remoting.Messaging;
  25.     using System.Security.Permissions;
  26.     using System;
  27.     /// <internalonly/>
  28.     [System.Runtime.InteropServices.ComVisible(true)]
  29.     public interface IContributeObjectSink
  30.     {
  31.         /// <internalonly/>
  32.         // Chain your message sink in front of the chain formed thus far and
  33.         // return the composite sink chain.
  34.         //
  35.         [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure)]
  36.         IMessageSink GetObjectSink(MarshalByRefObject obj, IMessageSink nextSink);
  37.     }
  38. }

Developer Fusion