コード例 #1
0
 private void Add(
     string methodName,
     Func <string[], object> userImplementation,
     IClientAction clientAction)
 {
     rules.Add(methodName, new ProcessingRule(userImplementation, clientAction));
 }
コード例 #2
0
 public ProcessingRule(
     Func <string[], object> userImplementation,
     IClientAction clientAction)
 {
     UserImplementation = userImplementation;
     ClientAction       = clientAction;
 }
コード例 #3
0
 public void AddAction(IClientAction action)
 {
     if (action != null)
     {
         action.ClientFactory       = this;
         _actions[action.GetType()] = action;
     }
 }
コード例 #4
0
 public ValidResponse(
     string id,
     object result,
     IClientAction clientAction)
 {
     Id           = id;
     Result       = result;
     ClientAction = clientAction;
 }
コード例 #5
0
 public void AddAction(IClientAction action)
 {
     _actionsLock.EnterWriteLock();
     try
     {
         if (action != null)
         {
             action.ClientFactory       = this;
             _actions[action.GetType()] = action;
         }
     }
     finally
     {
         _actionsLock.ExitWriteLock();
     }
 }
コード例 #6
0
 public void AddAction(IClientAction action)
 {
     // Do nothing
 }
コード例 #7
0
 public void AddAction(IClientAction action)
 {
     throw new NotImplementedException();
 }
コード例 #8
0
ファイル: RunnerAction.cs プロジェクト: CX-Checkout/egxo01
 private RunnerAction(string shortName, string longName, IClientAction clientAction)
 {
     ShortName = shortName;
     LongName = longName;
     ClientAction = clientAction;
 }
コード例 #9
0
 public void AddAction(IClientAction action)
 {
     action.ClientFactory      = this;
     actions[action.GetType()] = action;
 }
コード例 #10
0
 public ClientActionEventArgs(IClientAction action)
     : base()
 {
     this.Action = action;
 }
コード例 #11
0
 public ClientActionEventArgs(IClientAction action)
     : base()
 {
     this.Action = action;
 }
コード例 #12
0
 public void Then(IClientAction clientAction)
 {
     processingRules.Add(methodName, userImplementation, clientAction);
 }