예제 #1
0
 public ValueTask <IStartProcessResponse> StartAsync(IStartProcessRequest prm)
 {
     if (prm.Identity.Id == "test")
     {
         return(new ValueTask <IStartProcessResponse>(new StartResp()));
     }
     throw new ApiException();
 }
예제 #2
0
        public async ValueTask <IStartProcessResponse> StartAsync(IStartProcessRequest prm)
        {
            var i = await CreateAsync(prm.Identity);

            i = await RunAsync(i.Id, prm.Parameters);

            return(new StartProcessResponse()
            {
                InstanceId = i.Id
            });
        }