/// <param name="theServerSocket">a ServerSocket on which to listen for connections that will /// be used for both locally-driven and remotely-driven message exchanges /// </param> /// <param name="theRouter">used to send incoming messages to appropriate <code>Application</code>s /// </param> /// <param name="theStorage">used to commit incoming messages to safe storage before returning /// an accept ACK /// </param> public NuGenHL7Server(System.Net.Sockets.TcpListener theServerSocket, NuGenApplicationRouter theRouter, NuGenSafeStorage theStorage) { myServerSocket = theServerSocket; myRouter = theRouter; myStorage = theStorage; initProcessorList(); }
/// <param name="theLocallyDriven">a ServerSocket on which to listen for connections that will /// be used for locally-initiated message exchanges /// </param> /// <param name="theRemotelyDriven">a ServerSocket on which to listen for connections that will /// be used for remotely-initiated message exchanges /// </param> /// <param name="theRouter">used to send incoming messages to appropriate <code>Application</code>s /// </param> /// <param name="theStorage">used to commit incoming messages to safe storage before returning /// an accept ACK /// </param> public NuGenHL7Server(System.Net.Sockets.TcpListener theLocallyDriven, System.Net.Sockets.TcpListener theRemotelyDriven, NuGenApplicationRouter theRouter, NuGenSafeStorage theStorage) { myServerSocket = theLocallyDriven; myServerSocket2 = theRemotelyDriven; myRouter = theRouter; myStorage = theStorage; initProcessorList(); }
/// <summary> Creates a new instance that uses the given resources. /// /// </summary> /// <param name="theRouter"> /// </param> /// <param name="theTransport">a <code>TransportLayer</code> used for both locally-initiated /// and remotely-initiated message exchanges /// </param> /// <param name="theStorage"> /// </param> public NuGenProcessorContextImpl(NuGenApplicationRouter theRouter, NuGenTransportLayer theTransport, NuGenSafeStorage theStorage) { myRouter = theRouter; myRemotelyDrivenTransport = theTransport; myLocallyDrivenTransport = theTransport; mySafeStorage = theStorage; myValidators = new System.Collections.ArrayList(8); myMetadataFields = new System.Collections.ArrayList(30); }
/// <summary> Creates a new instance that uses the given resources. /// /// </summary> /// <param name="theRouter"> /// </param> /// <param name="theLocallyDrivenTransport">a <code>TransportLayer</code> used for locally-initiated /// and message exchanges /// </param> /// <param name="theRemotelyDrivenTransport">a <code>TransportLayer</code> used for remotely-initiated /// and message exchanges /// </param> /// <param name="theStorage"> /// </param> public NuGenProcessorContextImpl(NuGenApplicationRouter theRouter, NuGenTransportLayer theLocallyDrivenTransport, NuGenTransportLayer theRemotelyDrivenTransport, NuGenSafeStorage theStorage) { myRouter = theRouter; myRemotelyDrivenTransport = theRemotelyDrivenTransport; myLocallyDrivenTransport = theLocallyDrivenTransport; mySafeStorage = theStorage; myValidators = new System.Collections.ArrayList(8); myMetadataFields = new System.Collections.ArrayList(30); }