/// <summary> /// Creates a new instance of the <see cref="WcfService{TService}"/> class. /// </summary> /// <param name="binding">The binding for the service</param> /// <param name="endpointAddress">The endpoint address</param> public WcfService(Binding binding, EndpointAddress endpointAddress) { this.binding = binding; this.endpointAddress = endpointAddress; this.initializationKind = WcfInitializationKind.BindingAndEndpointAddress; }
/// <summary> /// Creates a new instance of the <see cref="WcfService{TService}"/> class. /// </summary> /// <param name="endpointName">The name of the endpoint</param> public WcfService(string endpointName) { this.endpointName = endpointName; this.initializationKind = WcfInitializationKind.EndpointName; }