Exemple #1
0
        public void Log(ActionToExecute actionToExecute, DateTimeOffset timestamp)
        {
            var log = new ActionLog
            {
                Identifier          = Guid.NewGuid(),
                DeviceName          = actionToExecute.DeviceName,
                ActionTypeName      = actionToExecute.ActionTypeName,
                Type                = actionToExecute.ActionTriggerValue,
                ActionArgumentValue = actionToExecute.ActionArgumentValue,
                Timestamp           = timestamp
            };

            _logRepository.Add(log);
        }
Exemple #2
0
        public void Log(Exception ex, ActionToExecute failedAction, DateTimeOffset timestamp)
        {
            var log = new FailedActionLog
            {
                Identifier          = Guid.NewGuid(),
                DeviceName          = failedAction.DeviceName,
                ActionTypeName      = failedAction.ActionTypeName,
                Type                = failedAction.ActionTriggerValue,
                ActionArgumentValue = failedAction.ActionArgumentValue,
                Error               = ex.Message,
                Timestamp           = timestamp
            };

            _logRepository.Add(log);
        }
 private void transferToolStripButton_Click(object sender, EventArgs e)
 {
     if (_call.StateId == EStateId.ACTIVE)
     {
         accountLabel.Text = Properties.LocalizedStrings.CallState_TransferPrompt;
         numberLabel.Text = string.Empty;
         action = ActionToExecute.Transfer;
         //sipResource.CallManager.onUserTransfer(_call.Session, numberLabel.Text);
     }
 }
        private void callButton_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(callDestinationTextBox.Text) && isDefaultAccountRegistered())
            {
                switch (action)
                {
                    case ActionToExecute.Call:
                        _call = SipResource.CallManager.createOutboundCall(numberLabel.Text);
                        break;
                    case ActionToExecute.Transfer:
                        sipResource.CallManager.onUserTransfer(_call.Session, numberLabel.Text);
                        accountLabel.Text = string.Empty;
                        action = ActionToExecute.Call;
                        break;
                    default:
                        break;
                }

            }
        }
 public AnalogAction1D(string name, ActionToExecute boundAction, IAnalog1D binding)
 {
     this.name        = name;
     this.boundAction = boundAction;
     this.binding     = binding;
 }
Exemple #6
0
 public DynamicAction(DynamicAction actionToCopy)
 {
     this.m_refActionToExecute = actionToCopy.m_refActionToExecute;
     this.m_info = actionToCopy.m_info;
     this.m_id   = actionToCopy.m_id;
 }
Exemple #7
0
 public DynamicAction(InfoId id, ActionToExecute action)
 {
     m_id = id;
     m_refActionToExecute = action;
 }
Exemple #8
0
 public ButtonAction(string name, ActionToExecute boundAction, IButton binding)
 {
     this.name        = name;
     this.boundAction = boundAction;
     this.binding     = binding;
 }