/// <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> /// 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)); }