InitializeServiceEndpoint() private method

private InitializeServiceEndpoint ( bool isCallback, Type serviceType, ServiceEndpoint se ) : void
isCallback bool
serviceType System.Type
se System.ServiceModel.Description.ServiceEndpoint
return void
		public DuplexClientRuntimeChannel (ServiceEndpoint endpoint,
			ChannelFactory factory, EndpointAddress remoteAddress, Uri via)
			: base (endpoint, factory, remoteAddress, via)
		{
			var ed = new EndpointDispatcher (remoteAddress, endpoint.Contract.Name, endpoint.Contract.Namespace);
			ed.InitializeServiceEndpoint (true, null, endpoint);
			Runtime.CallbackDispatchRuntime = ed.DispatchRuntime;
		}
        internal EndpointDispatcher InitializeServiceEndpoint(Type serviceType, ServiceEndpoint se)
        {
            //Attach one EndpointDispacher to the ChannelDispatcher
            EndpointDispatcher ed = new EndpointDispatcher(se.Address, se.Contract.Name, se.Contract.Namespace);

            this.Endpoints.Add(ed);
            ed.InitializeServiceEndpoint(false, serviceType, se);
            return(ed);
        }
		public DuplexClientRuntimeChannel (ServiceEndpoint endpoint,
			ChannelFactory factory, EndpointAddress remoteAddress, Uri via)
			: base (endpoint, factory, remoteAddress, via)
		{
			var cd = ContractDescription.GetContract (endpoint.Contract.CallbackContractType);
			var se = new ServiceEndpoint (cd, factory.Endpoint.Binding, remoteAddress);
			var ed = new EndpointDispatcher (remoteAddress, cd.Name, cd.Namespace);
			ed.InitializeServiceEndpoint (true, null, se);
			Runtime.CallbackDispatchRuntime = ed.DispatchRuntime;
		}
Example #4
0
        internal void InitializeServiceEndpoint(Type serviceType, ServiceEndpoint se)
        {
            this.MessageVersion = se.Binding.MessageVersion;
            if (this.MessageVersion == null)
            {
                this.MessageVersion = MessageVersion.Default;
            }

            //Attach one EndpointDispacher to the ChannelDispatcher
            EndpointDispatcher ed = new EndpointDispatcher(se.Address, se.Contract.Name, se.Contract.Namespace);

            this.Endpoints.Add(ed);
            ed.InitializeServiceEndpoint(false, serviceType, se);
        }