protected virtual ITimer OnCreateWaitForAckTimer(Action action)
        {
            Action afterCallBack = () => _waitForTimeOut.Set();

            _waitforAckTimer = new TxTimerStub(action, 200, false, afterCallBack);
            return(_waitforAckTimer);
        }
Ejemplo n.º 2
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, _originalInterval, true, AfterRetransmitFired);
     return(RetransitOkTimer);
 }
Ejemplo n.º 4
0
 private ITimer OnCreateTimeOutTimerStub(Action a)
 {
     TimeOutTimer = new TxTimerStub(a, 2000, false, AftertimeOut);
     return(TimeOutTimer);
 }
Ejemplo n.º 5
0
 protected virtual ITimer OnCreateWaitForAckTimer(Action action)
 {
     _waitforAckTimer = new TxTimerStub(action, int.MaxValue, false, null);
     return(_waitforAckTimer);
 }
Ejemplo n.º 6
0
 private ITimer CreateDoNothingTimerStub(Action action)
 {
     TimeOutTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return(TimeOutTimer);
 }
 private ITimer CreateNonInviteCtxTimeOutTimer(Action action)
 {
     TimeOutTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return(TimeOutTimer);
 }
Ejemplo n.º 8
0
 protected virtual ITimer OnCreateRingingTimer(Action action, int periodicity)
 {
     _ringingTimer = new TxTimerStub(action, periodicity, true, () => _ringingSendCounter++);
     return(_ringingTimer);
 }
Ejemplo n.º 9
0
 private ITimer CreateDefaultNonInviteStxEndCompletedTimer(Action action)
 {
     EndCompletedTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return(EndCompletedTimer);
 }
Ejemplo n.º 10
0
 protected ITimer CreateInviteCtxCompletedEndTimer(Action action)
 {
     CompletedEndTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return(CompletedEndTimer);
 }
Ejemplo n.º 11
0
 protected ITimer CreateInviteCtxRetransmitTimer(Action action)
 {
     RetransitTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return(RetransitTimer);
 }
 protected virtual ITimer OnCreateTimeOutTimer(Action action)
 {
     EndWaitForAckTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return(EndWaitForAckTimer);
 }
 protected virtual ITimer OnCreateRetransmitOkTimer(Action action)
 {
     RetransitOkTimer = new TxTimerStub(action, int.MaxValue, false, () => { });
     return(RetransitOkTimer);
 }