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); }
public void StartCustomWorkFlow([FromBody] StartRequestModel model) { new WorkflowAction(_config.Value, _config.Value.TaskLoopInterval, _dbConfig.Value).StartCustomWorkFlow(model.Id, model.TaskModel, model.TaskIndex); }
public Task <ResultContainer <EmptyActionResult> > StartRequest([FromBody] StartRequestModel model) { return(api.Group("PermanentLog").Action <StartRequestModel, EmptyActionResult>("StartRequest").Execute(model)); }