/// <summary> /// Converts the RequestSession message into an <see cref="EtpEndpointInfo"/> instance. /// </summary> /// <param name="message">The message to convert.</param> /// <returns>The created instance.</returns> public static EtpEndpointInfo ToEndpointInfo(this EtpMessage <IRequestSession> message) { return(EtpEndpointInfo.FromId(message.Body.ApplicationName, message.Body.ApplicationVersion, message.Body.ClientInstanceId)); }
/// <summary> /// Converts the OpenSession message into an <see cref="EtpEndpointInfo"/> instance. /// </summary> /// <param name="message">The message to convert.</param> /// <returns>The created instance.</returns> public static EtpEndpointInfo ToEndpointInfo(this EtpMessage <IOpenSession> message) { return(EtpEndpointInfo.FromId(message.Body.ApplicationName, message.Body.ApplicationVersion, message.Body.ServerInstanceId)); }
/// <summary> /// Initializes a new instance of the <see cref="EtpServerManagerBase"/> class. /// </summary> /// <param name="webServerDetails">The web server details.</param> /// <param name="endpointInfo">The server manager's endpoint information.</param> /// <param name="endpointParameters">The server manager's endpoint parameters.</param> public EtpServerManagerBase(EtpWebServerDetails webServerDetails, EtpEndpointInfo endpointInfo, EtpEndpointParameters endpointParameters) : base(false) { WebServerDetails = webServerDetails; EndpointInfo = endpointInfo; EndpointParameters = endpointParameters ?? new EtpEndpointParameters(); }