Пример #1
0
 public static async void Send (string actionKey, string actionValue)
 {
     var experimentAction = new ExperimentAction {
         ExperimentId = ExperimentNumber,
         ActionKey = actionKey,
         ActionValue = actionValue
     };
     await experimentAction.Send();
 }
Пример #2
0
 public static async void Send (int experimentNumber, string actionKey, string actionValue)
 {
     if (InExperimentGroups (experimentNumber)) {
         var experimentAction = new ExperimentAction () {
             ExperimentId = experimentNumber,
             ActionKey = actionKey,
             ActionValue = actionValue
         };
         Task.Run (async () => { await experimentAction.Send (); });
     }
 }