Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <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));
 }