System.ServiceModel.Description.ServiceEndpoint.CreateClientRuntime C# (CSharp) Method

CreateClientRuntime() private method

private CreateClientRuntime ( object callbackDispatchRuntime ) : ClientRuntime
callbackDispatchRuntime object
return ClientRuntime
		internal ClientRuntime CreateClientRuntime (object callbackDispatchRuntime)
		{
			ServiceEndpoint se = this;

			var proxy = se.Contract.CreateClientRuntime (callbackDispatchRuntime);

#if !NET_2_1
			foreach (IEndpointBehavior b in se.Behaviors)
				b.ApplyClientBehavior (se, proxy);
			foreach (IContractBehavior b in se.Contract.Behaviors)
				b.ApplyClientBehavior (se.Contract, se, proxy);
#endif
			return proxy;
		}
	}