public ConnectionEventArgs(Connection connection) { _connection = connection; }
internal void ConnectConfirmation(ConnectConfirmation confirmation, MessageAsyncResult result) { if (confirmation.Succeeded) { ConnectRequest request = (ConnectRequest)result.Request; Connection connection = new Connection(_application, this, confirmation.Identifier.PLCI, request.CalledPartyNumber, request.CallingPartyNumber); Connections.InternalAdd(connection); connection.Inititator = true; connection.Status = ConnectionStatus.D_ConnectPending; result.InvokeCallback(connection); } else { result.InvokeCallback(new CapiException(confirmation.Info)); } }
internal void ConnectIndication(ConnectIndication indication) { Connection connection = Connections.GetConnectionByPLCI(indication.Identifier.PLCI); if (connection == null) { connection = new Connection(_application, this, indication.Identifier.PLCI, indication.CalledPartyNumber, indication.CallingPartyNumber); Connections.InternalAdd(connection); } AlertRequest request = new AlertRequest(); request.Identifier.Value = indication.Identifier.Value; _application.SendMessage(request); // Notify user application.... connection.Status = ConnectionStatus.D_ConnectPending; connection.ConnectIndication(indication); IncomingPhysicalConnectionEventArgs args = new IncomingPhysicalConnectionEventArgs(connection); _application.OnIncomingPhysicalConnection(args); }
internal IncomingPhysicalConnectionEventArgs(Connection connection) : base(connection) { }
public ControllerEventArgs(Message message, Connection connection) : base(message) { _connection = connection; }
public ConnectionStream(Connection connection) { if (connection == null) throw new ArgumentNullException("connection"); _connection = connection; }
public DTFMEventArgs(Connection connection, string digits) : base(connection) { _digits = digits; }
public IncomingLogicalConnectionEventArgs(ConnectB3Indication indication, Connection connection, ConnectB3Response response) : base(indication, connection) { _response = response; }