Beispiel #1
0
 public ChannelCollection(ServiceChannelManager channelManager, object syncRoot)
 {
     if (syncRoot == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("syncRoot"));
     }
     this.channelManager = channelManager;
     this.syncRoot       = syncRoot;
 }
Beispiel #2
0
 internal InstanceContext(object implementation, bool wellKnown, bool isUserCreated)
 {
     if (implementation != null)
     {
         _userObject = implementation;
         _wellKnown  = wellKnown;
     }
     _channels      = new ServiceChannelManager(this);
     _isUserCreated = isUserCreated;
 }
Beispiel #3
0
        internal InstanceContext(ServiceHostBase host, bool isUserCreated)
        {
            if (host == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("host"));
            }

            this.host          = host;
            this.autoClose     = true;
            this.channels      = new ServiceChannelManager(this, NotifyEmptyCallback);
            this.isUserCreated = isUserCreated;
        }
Beispiel #4
0
 internal InstanceContext(ServiceHostBase host, object implementation, bool wellKnown, bool isUserCreated)
 {
     this.host = host;
     if (implementation != null)
     {
         this.userObject = implementation;
         this.wellKnown  = wellKnown;
     }
     this.autoClose     = false;
     this.channels      = new ServiceChannelManager(this);
     this.isUserCreated = isUserCreated;
 }
 public ChannelCollection(ServiceChannelManager channelManager, object syncRoot)
 {
     _channelManager = channelManager;
     _syncRoot       = syncRoot ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(syncRoot)));
 }