Пример #1
0
 private static async Task startRequest(IServiceProvider services, string sessionKey, string requestKey)
 {
     var clock             = services.GetService <Clock>();
     var startRequestModel = new StartRequestModel
     {
         RequestKey  = requestKey,
         SessionKey  = sessionKey,
         TimeStarted = clock.Now(),
         AppType     = AppType.Values.WebApp.DisplayText,
         Path        = "/Fake/Current/Test/Action1"
     };
     var api = services.GetService <HubAppApi>();
     await api.PermanentLog.StartRequest.Execute(startRequestModel);
 }
Пример #2
0
 public void StartCustomWorkFlow([FromBody] StartRequestModel model)
 {
     new WorkflowAction(_config.Value, _config.Value.TaskLoopInterval, _dbConfig.Value).StartCustomWorkFlow(model.Id, model.TaskModel, model.TaskIndex);
 }
Пример #3
0
 public Task <ResultContainer <EmptyActionResult> > StartRequest([FromBody] StartRequestModel model)
 {
     return(api.Group("PermanentLog").Action <StartRequestModel, EmptyActionResult>("StartRequest").Execute(model));
 }