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

  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 IContributeEnvoySink interface is implemented by properties
  16. // in the ServerContext that contribute sinks to the serverContext
  17. // and serverObject chains. The sinks contributed through this
  18. // interface are expected to act as Envoys for the corresponding
  19. // property sinks in the ServerContext and ServerObject chains.
  20. //
  21. namespace System.Runtime.Remoting.Contexts
  22. {
  23.    
  24.     using System.Runtime.InteropServices;
  25.     using System.Runtime.Remoting.Messaging;
  26.     using System.Security.Permissions;
  27.     using System;
  28.     /// <internalonly/>
  29.     [System.Runtime.InteropServices.ComVisible(true)]
  30.     public interface IContributeEnvoySink
  31.     {
  32.         /// <internalonly/>
  33.         // Chain your message sink in front of the chain formed thus far and
  34.         // return the composite sink chain. This method is used when creating
  35.         // the sink chain for X-Context cases. The server object is provided
  36.         // for the interest of object-specific
  37.         //
  38.         [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure)]
  39.         IMessageSink GetEnvoySink(MarshalByRefObject obj, IMessageSink nextSink);
  40.     }
  41. }

Developer Fusion