Esempio n. 1
0
        /// <summary>
        /// Creates a connection to the specified address.
        /// </summary>
        /// <param name="connectionDetails">Provides all the connection details.</param>
        /// <returns>A Task&lt;IHostConnection&gt;.</returns>
        public static async Task <IHostConnection> Create(ClientConnectionDetails connectionDetails)
        {
            var instance = new MllpClient(connectionDetails);
            await instance.Setup();

            return(instance);
        }
Esempio n. 2
0
 /// <summary>
 /// Gets an instance of an MLLP connection.
 /// </summary>
 /// <param name="connectionDetails">
 /// The connection Details.
 /// </param>
 /// <returns>
 /// An MLLP connection as an async operation.
 /// </returns>
 public Task <IHostConnection> GetClientConnection(ClientConnectionDetails connectionDetails)
 {
     return(MllpClient.Create(connectionDetails));
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LocallyInitiatedIheTransaction{TSend,TReceive}"/> class.
 /// </summary>
 /// <param name="connectionFactory"></param>
 /// <param name="parser"></param>
 protected LocallyInitiatedIheTransaction(Func <Task <IHostConnection> > connectionFactory, PipeParser parser, ClientConnectionDetails connectionDetails)
 {
     _connectionFactory      = connectionFactory;
     _parser                 = parser;
     this._connectionDetails = connectionDetails;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MllpClient"/> class.
 /// </summary>
 /// <param name="connectionDetails">Provides all the connection details.</param>
 public MllpClient(ClientConnectionDetails connectionDetails)
 {
     this.connectionDetails = connectionDetails;
 }