void IWcfEndpointVisitor.VisitConfigurationEndpoint(ConfigurationEndpointModel model)
 {
     serviceEndpoint = builder.AddServiceEndpoint(serviceHost, model);
 }
Example #2
0
 void IWcfEndpointVisitor.VisitConfigurationEndpoint(ConfigurationEndpointModel model)
 {
     channelCreator = GetChannel(contract, model.EndpointName);
 }
 protected virtual ServiceEndpoint AddServiceEndpoint(ServiceHost serviceHost, ConfigurationEndpointModel model)
 {
     throw new InvalidOperationException("The ServiceEndpoint for a ServiceHost " +
                                         "cannot be created from an endpoint name.");
 }