Exemplo n.º 1
0
Arquivo: Port.cs Projeto: Dloz/Task3
        public void OutgoingCall(object sender, CallEventArgs e)
        {
            if (State != PortState.Connected)
            {
                return;
            }
            State = PortState.Busy;

            CurrentCallId = Guid.NewGuid();
            e.Id          = CurrentCallId;
            Console.WriteLine(@"Port -> OutgoingCall: id {0}", CurrentCallId);

            PortCallEvent?.Invoke(sender, e);
        }
Exemplo n.º 2
0
 public void IncomingCall(string number, string incomingNumber)
 {
     PortCallEvent?.Invoke(this, new CallEventArgs(number, incomingNumber));
 }
Exemplo n.º 3
0
 protected virtual void DoIncomingCallEvent(int number, int objectNumber)
 {
     PortCallEvent?.Invoke(this, new CallArgsEvent(number, objectNumber));
 }