void IWcfEndpointVisitor.VisitBindingEndpoint(BindingEndpointModel model)
 {
     serviceEndpoint = builder.AddServiceEndpoint(serviceHost, model);
 }
Exemplo n.º 2
0
 void IWcfEndpointVisitor.VisitBindingEndpoint(BindingEndpointModel model)
 {
     channelCreator = GetChannel(contract, GetEffectiveBinding(model.Binding, null), string.Empty);
 }
        protected virtual ServiceEndpoint AddServiceEndpoint(ServiceHost serviceHost, BindingEndpointModel model)
        {
            var binding = GetEffectiveBinding(model.Binding, serviceHost, string.Empty);

            return(serviceHost.AddServiceEndpoint(model.Contract, binding, string.Empty));
        }