private ClientRuntime(string contractName, string contractNamespace, SharedRuntimeState shared)
 {
     this.addTransactionFlowProperties = true;
     this.useSynchronizationContext    = true;
     this.contractName                   = contractName;
     this.contractNamespace              = contractNamespace;
     this.shared                         = shared;
     this.operations                     = new OperationCollection(this);
     this.channelInitializers            = new ProxyBehaviorCollection <IChannelInitializer>(this);
     this.messageInspectors              = new ProxyBehaviorCollection <IClientMessageInspector>(this);
     this.interactiveChannelInitializers = new ProxyBehaviorCollection <IInteractiveChannelInitializer>(this);
     this.unhandled                      = new ClientOperation(this, "*", "*", "*");
     this.unhandled.InternalFormatter    = new MessageOperationFormatter();
     this.maxFaultSize                   = 0x10000;
 }
Example #2
0
        ClientRuntime(string contractName, string contractNamespace, SharedRuntimeState shared)
        {
            this.contractName      = contractName;
            this.contractNamespace = contractNamespace;
            this.shared            = shared;

            OperationCollection operations = new OperationCollection(this);

            this.operations     = operations;
            channelInitializers = new ProxyBehaviorCollection <IChannelInitializer>(this);
            messageInspectors   = new ProxyBehaviorCollection <IClientMessageInspector>(this);

            unhandled = new ClientOperation(this, "*", MessageHeaders.WildcardAction, MessageHeaders.WildcardAction);
            unhandled.InternalFormatter = new MessageOperationFormatter();
            maxFaultSize = TransportDefaults.MaxFaultSize;
        }