internal ServiceChannelProxy(System.Type interfaceType, System.Type proxiedType, MessageDirection direction, ServiceChannel serviceChannel) : base(proxiedType)
 {
     if (!MessageDirectionHelper.IsDefined(direction))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("direction"));
     }
     this.interfaceType   = interfaceType;
     this.proxiedType     = proxiedType;
     this.serviceChannel  = serviceChannel;
     this.proxyRuntime    = serviceChannel.ClientRuntime.GetRuntime();
     this.methodDataCache = new MethodDataCache();
     this.objectWrapper   = new MbrObject(this, proxiedType);
 }
 internal DirectionalAction(MessageDirection direction, string action)
 {
     if (!MessageDirectionHelper.IsDefined(direction))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("direction"));
     }
     this.direction = direction;
     if (action == null)
     {
         this.action       = "*";
         this.isNullAction = true;
     }
     else
     {
         this.action       = action;
         this.isNullAction = false;
     }
 }
Example #3
0
        internal DirectionalAction(MessageDirection direction, string action)
        {
            if (!MessageDirectionHelper.IsDefined(direction))
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("direction"));
            }

            _direction = direction;
            if (action == null)
            {
                _action       = MessageHeaders.WildcardAction;
                _isNullAction = true;
            }
            else
            {
                _action       = action;
                _isNullAction = false;
            }
        }