예제 #1
0
        public DispatchOperation(DispatchRuntime parent, string name, string action)
        {
            Parent = parent ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parent));
            Name   = name ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(name));
            Action = action;

            _faultContractInfos = parent.NewBehaviorCollection <FaultContractInfo>();
            ParameterInspectors = parent.NewBehaviorCollection <IParameterInspector>();
            IsOneWay            = true;
        }
        public DispatchOperation(DispatchRuntime parent, string name, string action)
        {
            if (parent == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("parent");
            if (name == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name");

            _parent = parent;
            _name = name;
            _action = action;

            _faultContractInfos = parent.NewBehaviorCollection<FaultContractInfo>();
            _parameterInspectors = parent.NewBehaviorCollection<IParameterInspector>();
            _isOneWay = true;
        }
        public DispatchOperation(DispatchRuntime parent, string name, string action)
        {
            if (parent == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("parent");
            if (name == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name");

            this.parent = parent;
            this.name = name;
            this.action = action;
            this.impersonation = OperationBehaviorAttribute.DefaultImpersonationOption;

            this.callContextInitializers = parent.NewBehaviorCollection<ICallContextInitializer>();
            this.faultContractInfos = parent.NewBehaviorCollection<FaultContractInfo>();
            this.parameterInspectors = parent.NewBehaviorCollection<IParameterInspector>();
            this.isOneWay = true;
        }
예제 #4
0
        public DispatchOperation(DispatchRuntime parent, string name, string action)
        {
            if (parent == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("parent");
            }
            if (name == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name");
            }

            _parent = parent;
            _name   = name;
            _action = action;

            _faultContractInfos  = parent.NewBehaviorCollection <FaultContractInfo>();
            _parameterInspectors = parent.NewBehaviorCollection <IParameterInspector>();
            _isOneWay            = true;
        }
        public DispatchOperation(DispatchRuntime parent, string name, string action)
        {
            if (parent == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("parent");
            }
            if (name == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name");
            }

            this.parent        = parent;
            this.name          = name;
            this.action        = action;
            this.impersonation = OperationBehaviorAttribute.DefaultImpersonationOption;

            this.callContextInitializers = parent.NewBehaviorCollection <ICallContextInitializer>();
            this.faultContractInfos      = parent.NewBehaviorCollection <FaultContractInfo>();
            this.parameterInspectors     = parent.NewBehaviorCollection <IParameterInspector>();
            this.isOneWay = true;
        }
예제 #6
0
 public DispatchOperation(DispatchRuntime parent, string name, string action)
 {
     this.deserializeRequest    = true;
     this.serializeReply        = true;
     this.autoDisposeParameters = true;
     if (parent == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("parent");
     }
     if (name == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name");
     }
     this.parent                  = parent;
     this.name                    = name;
     this.action                  = action;
     this.impersonation           = ImpersonationOption.NotAllowed;
     this.callContextInitializers = parent.NewBehaviorCollection <ICallContextInitializer>();
     this.faultContractInfos      = parent.NewBehaviorCollection <FaultContractInfo>();
     this.parameterInspectors     = parent.NewBehaviorCollection <IParameterInspector>();
     this.isOneWay                = true;
 }
 public DispatchOperation(DispatchRuntime parent, string name, string action)
 {
     this.deserializeRequest = true;
     this.serializeReply = true;
     this.autoDisposeParameters = true;
     if (parent == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("parent");
     }
     if (name == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name");
     }
     this.parent = parent;
     this.name = name;
     this.action = action;
     this.impersonation = ImpersonationOption.NotAllowed;
     this.callContextInitializers = parent.NewBehaviorCollection<ICallContextInitializer>();
     this.faultContractInfos = parent.NewBehaviorCollection<FaultContractInfo>();
     this.parameterInspectors = parent.NewBehaviorCollection<IParameterInspector>();
     this.isOneWay = true;
 }