The Labs \ Source Viewer \ SSCLI \ System.Runtime.Remoting.Messaging \ IInternalMessage

  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. /*============================================================
  16. **
  17. ** File:    IInternalMessage.cs
  18. **
  19. **
  20. ** Purpose: Defines an interface that allows kitchen sink data to be
  21. **          set and retrieved from the various kinds of message objects.
  22. **         
  23. **
  24. **
  25. ===========================================================*/
  26. namespace System.Runtime.Remoting.Messaging
  27. {
  28.     using System.Runtime.Remoting;
  29.     using System.Security.Permissions;
  30.     using System;
  31.     internal interface IInternalMessage
  32.     {
  33.         ServerIdentity ServerIdentityObject {
  34.             [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure)]
  35.             get;
  36.             [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure)]
  37.             set;
  38.         }
  39.         Identity IdentityObject {
  40.             [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure)]
  41.             get;
  42.             [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure)]
  43.             set;
  44.         }
  45.         [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure)]
  46.         void SetURI(string uri);
  47.         [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure)]
  48.         void SetCallContext(LogicalCallContext callContext);
  49.        
  50.         // The following should return true, if the property object hasn't
  51.         // been created.
  52.         [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure)]
  53.         bool HasProperties();
  54.     }
  55. }

Developer Fusion