コード例 #1
0
 public ConnectionEventArgs(Connection connection) {
     _connection = connection;
 }
コード例 #2
0
ファイル: Controller.cs プロジェクト: modulexcite/capi.net
        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));
            }
        }
コード例 #3
0
ファイル: Controller.cs プロジェクト: modulexcite/capi.net
        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);
        }
コード例 #4
0
 internal IncomingPhysicalConnectionEventArgs(Connection connection)
     : base(connection) {
 }
コード例 #5
0
 public ControllerEventArgs(Message message, Connection connection)
     : base(message)
 {
     _connection = connection;
 }
コード例 #6
0
 public ConnectionStream(Connection connection) {
     if (connection == null) throw new ArgumentNullException("connection");
     _connection = connection;
 }
コード例 #7
0
ファイル: DTFMEventArgs.cs プロジェクト: modulexcite/capi.net
 public DTFMEventArgs(Connection connection, string digits)
     : base(connection) {
     _digits = digits;
 }
コード例 #8
0
 public IncomingLogicalConnectionEventArgs(ConnectB3Indication indication, Connection connection,
     ConnectB3Response response)
     : base(indication, connection) {
     _response = response;
 }