/// <summary> /// Constructs a channel factory from the textual description of a <see cref="WcfEndpoint" />. /// </summary> /// <param name="endpointSettings">The textual description of a <see cref="WcfEndpoint" />.</param> public WcfChannelFactory(string endpointSettings) : this(WcfEndpoint.Parse(endpointSettings)) { }
/// <summary> /// Exposes a service endpoint for the specified service interface type. /// </summary> /// <param name="interfaceType">The interface type.</param> /// <param name="endpoint">The WCF endpoint as a string.</param> /// <remarks> /// <note> /// This method cannot be called after the service has started. /// </note> /// </remarks> /// <exception cref="InvalidOperationException">Thrown if the service has already started or the interface is not tagged with [ServiceContract].</exception> public void AddServiceEndpoint(System.Type interfaceType, string endpoint) { AddServiceEndpoint(interfaceType, WcfEndpoint.Parse(endpoint)); }