Exemplo n.º 1
0
 protected ITimer CreateInviteCtxTimeOutTimer(Action action)
 {
     TimeOutTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return TimeOutTimer;
 }
Exemplo n.º 2
0
 protected ITimer CreateInviteCtxCompletedEndTimer(Action action)
 {
     CompletedEndTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return CompletedEndTimer;
 }
Exemplo n.º 3
0
 protected ITimer CreateInviteCtxRetransmitTimer(Action action)
 {
     RetransitTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return RetransitTimer;
 }
Exemplo n.º 4
0
 protected virtual ITimer OnWaitForAckTimer(Action action)
 {
     _waitforAckTimer = new TxTimerStub(action, int.MaxValue, false, null);
     return _waitforAckTimer;
 }
 protected virtual ITimer OnCreateWaitForAckTimer(Action action)
 {
     Action afterCallBack = () => _waitForTimeOut.Set();
     _waitforAckTimer = new TxTimerStub(action, 200, false, afterCallBack);
     return _waitforAckTimer;
 }
 protected virtual ITimer OnCreateTimeOutTimer(Action action)
 {
     EndWaitForAckTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return EndWaitForAckTimer;
 }
Exemplo n.º 7
0
 protected virtual ITimer OnCreateRingingTimer(Action action)
 {
     _ringingTimer = new TxTimerStub(action, 200, true, null);
     return _ringingTimer;
 }
 protected virtual ITimer OnCreateRetransmitOkTimer(Action action)
 {
     RetransitOkTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return RetransitOkTimer;
 }
 private ITimer OnCreateTimeOutTimerStub(Action a)
 {
     TimeOutTimer = new TxTimerStub(a, 2000, false, AftertimeOut);
     return TimeOutTimer;
 }
 private ITimer CreateDoNothingTimerStub(Action action)
 {
     TimeOutTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return TimeOutTimer;
 }
Exemplo n.º 11
0
 protected virtual ITimer OnCreateRingingTimer(Action action, int periodicity)
 {
     _ringingTimer = new TxTimerStub(action, periodicity, true, () => _ringingSendCounter++);
     return _ringingTimer;
 }
Exemplo n.º 12
0
 private ITimer CreateDefaultNonInviteStxEndCompletedTimer(Action action)
 {
     EndCompletedTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return EndCompletedTimer;
 }