QBM.Operations.CompositionApi.Server.PlugIn/QBM.CompositionApi.Job/JobQueueEditApi.cs
Decompiler Source FileQBM.Operations.CompositionApi.Server.PlugIn.JobQueueEditApiDecompiled Source
Interpretation
- Decompiled source file. Use method/event registrations and call-site extraction to connect back to DialogMethod, QBMEvent, and API layers.
Relations
- CallMethodAsync: SetStartAt at line 377
- CallMethodAsync: SetPriority at line 422
- CallMethodAsync: SetRetries at line 444
- CallMethodAsync: SetLogMode at line 463
- CallMethodAsync: ResetProcess at line 486
Typed Edges
- No typed edges extracted for this source.
References
- No direct source references extracted.
Referenced By
- No direct source references extracted.
C# source-derived context
Generated by pattern extraction from the decompiled C# source and decompile index. This is factual source evidence, not inferred behavior.
reads entity values references DB/Dialog objects Job/process related markers
Summary: classes JobQueueEditApi, _003C_003Ec__DisplayClass0_0; methods MoveNext, SetStateMachine, _003CBuild_003Eb__0, _003CBuild_003Eb__1, Build, HandleJobAsync; references ESet, JobQueue; markers reads entity values, references DB/Dialog objects, Job/process related markers
Classes
JobQueueEditApi _003C_003Ec__DisplayClass0_0OIM key/entity markers
UID_JobAPI/entity calls
GetValue FromRegistrations / handlers
None extracted.
Complete Source
1using System;2using System.Collections;3using System.Collections.Generic;4using System.Diagnostics;5using System.Linq;6using System.Runtime.CompilerServices;7using System.Runtime.InteropServices;8using System.Threading;9using System.Threading.Tasks;10using QBM.CompositionApi.Definition;11using QBM.CompositionApi.Dto;12using QBM.CompositionApi.Handling;13using QBM.CompositionApi.Operations;14using VI.Base;15using VI.DB;16using VI.DB.Entities;1718namespace QBM.CompositionApi.Job;1920public class JobQueueEditApi : IApiProviderFor<OperationsApiProject>, IApiProvider21{22 [CompilerGenerated]23 private sealed class _003C_003Ec__DisplayClass0_024 {25 [StructLayout((LayoutKind)3)]26 private struct _003C_003CBuild_003Eb__1_003Ed : IAsyncStateMachine27 {28 public int _003C_003E1__state;2930 public AsyncTaskMethodBuilder _003C_003Et__builder;3132 public JobQueueEditInput input;3334 public IRequest request;3536 public CancellationToken ct;3738 public _003C_003Ec__DisplayClass0_0 _003C_003E4__this;3940 private ISession _003Csession_003E5__2;4142 private ConfiguredTaskAwaiter<IEntityCollection> _003C_003Eu__1;4344 private IUnitOfWork _003Cu_003E5__3;4546 private System.Collections.Generic.IEnumerator<IEntity> _003C_003E7__wrap3;4748 private IEntity _003Cj_003E5__5;4950 private ConfiguredTaskAwaiter _003C_003Eu__2;5152 private void MoveNext()53 {54 //IL_00e2: Unknown result type (might be due to invalid IL or missing references)55 //IL_00e7: Unknown result type (might be due to invalid IL or missing references)56 //IL_00ef: Unknown result type (might be due to invalid IL or missing references)57 //IL_0099: Unknown result type (might be due to invalid IL or missing references)58 //IL_00a4: Unknown result type (might be due to invalid IL or missing references)59 //IL_00a9: Unknown result type (might be due to invalid IL or missing references)60 //IL_00ad: Unknown result type (might be due to invalid IL or missing references)61 //IL_00b2: Unknown result type (might be due to invalid IL or missing references)62 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)63 //IL_00c9: Unknown result type (might be due to invalid IL or missing references)64 //IL_02d0: Unknown result type (might be due to invalid IL or missing references)65 //IL_02d5: Unknown result type (might be due to invalid IL or missing references)66 //IL_02dd: Unknown result type (might be due to invalid IL or missing references)67 //IL_01ac: Unknown result type (might be due to invalid IL or missing references)68 //IL_01b1: Unknown result type (might be due to invalid IL or missing references)69 //IL_01b9: Unknown result type (might be due to invalid IL or missing references)70 //IL_01dc: Unknown result type (might be due to invalid IL or missing references)71 //IL_01e7: Unknown result type (might be due to invalid IL or missing references)72 //IL_01ec: Unknown result type (might be due to invalid IL or missing references)73 //IL_01f0: Unknown result type (might be due to invalid IL or missing references)74 //IL_01f5: Unknown result type (might be due to invalid IL or missing references)75 //IL_0225: Unknown result type (might be due to invalid IL or missing references)76 //IL_022a: Unknown result type (might be due to invalid IL or missing references)77 //IL_0232: Unknown result type (might be due to invalid IL or missing references)78 //IL_020a: Unknown result type (might be due to invalid IL or missing references)79 //IL_020c: Unknown result type (might be due to invalid IL or missing references)80 //IL_0163: Unknown result type (might be due to invalid IL or missing references)81 //IL_016e: Unknown result type (might be due to invalid IL or missing references)82 //IL_0173: Unknown result type (might be due to invalid IL or missing references)83 //IL_0177: Unknown result type (might be due to invalid IL or missing references)84 //IL_017c: Unknown result type (might be due to invalid IL or missing references)85 //IL_0191: Unknown result type (might be due to invalid IL or missing references)86 //IL_0193: Unknown result type (might be due to invalid IL or missing references)87 //IL_0287: Unknown result type (might be due to invalid IL or missing references)88 //IL_0292: Unknown result type (might be due to invalid IL or missing references)89 //IL_0297: Unknown result type (might be due to invalid IL or missing references)90 //IL_029b: Unknown result type (might be due to invalid IL or missing references)91 //IL_02a0: Unknown result type (might be due to invalid IL or missing references)92 //IL_02b5: Unknown result type (might be due to invalid IL or missing references)93 //IL_02b7: Unknown result type (might be due to invalid IL or missing references)94 int num = _003C_003E1__state;95 _003C_003Ec__DisplayClass0_0 _003C_003Ec__DisplayClass0_ = _003C_003E4__this;96 try97 {98 ConfiguredTaskAwaiter<IEntityCollection> val;99 if (num == 0)100 {101 val = _003C_003Eu__1;102 _003C_003Eu__1 = default(ConfiguredTaskAwaiter<IEntityCollection>);103 num = (_003C_003E1__state = -1);104 goto IL_00fe;105 }106 if ((uint)(num - 1) <= 2u)107 {108 goto IL_011a;109 }110 if (Enumerable.Any<string>(input.UidJobs.AvoidNull()))111 {112 _003Csession_003E5__2 = request.Session;113 ISqlFormatter sqlFormatter = _003Csession_003E5__2.SqlFormatter();114 object[] uidJobs = input.UidJobs;115 string whereClause = sqlFormatter.InClause("UID_Job", ValType.String, FormatterOptions.NonUnicodeLiterals, uidJobs);116 Query query = Query.From("JobQueue").SelectAll().Where(whereClause);117 val = _003Csession_003E5__2.Source().GetCollectionAsync(query, EntityCollectionLoadType.Bulk, ct).ConfigureAwait(false)118 .GetAwaiter();119 if (!val.IsCompleted)120 {121 num = (_003C_003E1__state = 0);122 _003C_003Eu__1 = val;123 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<IEntityCollection>, _003C_003CBuild_003Eb__1_003Ed>(ref val, ref this);124 return;125 }126 goto IL_00fe;127 }128 goto end_IL_000e;129 IL_011a:130 IEntityCollection result = default(IEntityCollection);131 try132 {133 ConfiguredTaskAwaiter val2;134 if ((uint)(num - 1) > 1u)135 {136 if (num == 3)137 {138 val2 = _003C_003Eu__2;139 _003C_003Eu__2 = default(ConfiguredTaskAwaiter);140 num = (_003C_003E1__state = -1);141 goto IL_02ec;142 }143 _003C_003E7__wrap3 = ((System.Collections.Generic.IEnumerable<IEntity>)result).GetEnumerator();144 }145 ConfiguredTaskAwaitable val3;146 try147 {148 if (num != 1)149 {150 if (num != 2)151 {152 goto IL_024f;153 }154 val2 = _003C_003Eu__2;155 _003C_003Eu__2 = default(ConfiguredTaskAwaiter);156 num = (_003C_003E1__state = -1);157 goto IL_0241;158 }159 val2 = _003C_003Eu__2;160 _003C_003Eu__2 = default(ConfiguredTaskAwaiter);161 num = (_003C_003E1__state = -1);162 goto IL_01c8;163 IL_0241:164 ((ConfiguredTaskAwaiter)(ref val2)).GetResult();165 _003Cj_003E5__5 = null;166 goto IL_024f;167 IL_024f:168 if (((System.Collections.IEnumerator)_003C_003E7__wrap3).MoveNext())169 {170 _003Cj_003E5__5 = _003C_003E7__wrap3.Current;171 val3 = HandleJobAsync(input, _003Cj_003E5__5, ct).ConfigureAwait(false);172 val2 = ((ConfiguredTaskAwaitable)(ref val3)).GetAwaiter();173 if (!((ConfiguredTaskAwaiter)(ref val2)).IsCompleted)174 {175 num = (_003C_003E1__state = 1);176 _003C_003Eu__2 = val2;177 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003C_003CBuild_003Eb__1_003Ed>(ref val2, ref this);178 return;179 }180 goto IL_01c8;181 }182 goto end_IL_0135;183 IL_01c8:184 ((ConfiguredTaskAwaiter)(ref val2)).GetResult();185 val3 = _003Cu_003E5__3.PutAsync(_003Cj_003E5__5, ct).ConfigureAwait(false);186 val2 = ((ConfiguredTaskAwaitable)(ref val3)).GetAwaiter();187 if (!((ConfiguredTaskAwaiter)(ref val2)).IsCompleted)188 {189 num = (_003C_003E1__state = 2);190 _003C_003Eu__2 = val2;191 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003C_003CBuild_003Eb__1_003Ed>(ref val2, ref this);192 return;193 }194 goto IL_0241;195 end_IL_0135:;196 }197 finally198 {199 if (num < 0 && _003C_003E7__wrap3 != null)200 {201 ((System.IDisposable)_003C_003E7__wrap3).Dispose();202 }203 }204 _003C_003E7__wrap3 = null;205 val3 = _003Cu_003E5__3.CommitAsync(ct).ConfigureAwait(false);206 val2 = ((ConfiguredTaskAwaitable)(ref val3)).GetAwaiter();207 if (!((ConfiguredTaskAwaiter)(ref val2)).IsCompleted)208 {209 num = (_003C_003E1__state = 3);210 _003C_003Eu__2 = val2;211 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003C_003CBuild_003Eb__1_003Ed>(ref val2, ref this);212 return;213 }214 goto IL_02ec;215 IL_02ec:216 ((ConfiguredTaskAwaiter)(ref val2)).GetResult();217 }218 finally219 {220 if (num < 0 && _003Cu_003E5__3 != null)221 {222 ((System.IDisposable)_003Cu_003E5__3).Dispose();223 }224 }225 _003Cu_003E5__3 = null;226 _003C_003Ec__DisplayClass0_.jobQueueCache.QueryResultCache.Cache.Flush();227 goto end_IL_000e;228 IL_00fe:229 result = val.GetResult();230 _003Cu_003E5__3 = _003Csession_003E5__2.StartUnitOfWork();231 goto IL_011a;232 end_IL_000e:;233 }234 catch (System.Exception exception)235 {236 _003C_003E1__state = -2;237 _003Csession_003E5__2 = null;238 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);239 return;240 }241 _003C_003E1__state = -2;242 _003Csession_003E5__2 = null;243 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();244 }245246 [DebuggerHidden]247 private void SetStateMachine(IAsyncStateMachine stateMachine)248 {249 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);250 }251 }252253 public JobQueueCache jobQueueCache;254255 public Func<JobQueueEditInput, IRequest, CancellationToken, System.Threading.Tasks.Task> _003C_003E9__1;256257 internal void _003CBuild_003Eb__0(IMethod method)258 {259 QBM.CompositionApi.Definition.ExtensionMethods.With(method.Handle<JobQueueEditInput>("POST", (Func<JobQueueEditInput, IRequest, CancellationToken, System.Threading.Tasks.Task>)([AsyncStateMachine(typeof(_003C_003CBuild_003Eb__1_003Ed))] (JobQueueEditInput input, IRequest request, CancellationToken ct) =>260 {261 //IL_0002: Unknown result type (might be due to invalid IL or missing references)262 //IL_0007: Unknown result type (might be due to invalid IL or missing references)263 //IL_0026: Unknown result type (might be due to invalid IL or missing references)264 //IL_0027: Unknown result type (might be due to invalid IL or missing references)265 _003C_003CBuild_003Eb__1_003Ed _003C_003CBuild_003Eb__1_003Ed = default(_003C_003CBuild_003Eb__1_003Ed);266 _003C_003CBuild_003Eb__1_003Ed._003C_003Et__builder = AsyncTaskMethodBuilder.Create();267 _003C_003CBuild_003Eb__1_003Ed._003C_003E4__this = this;268 _003C_003CBuild_003Eb__1_003Ed.input = input;269 _003C_003CBuild_003Eb__1_003Ed.request = request;270 _003C_003CBuild_003Eb__1_003Ed.ct = ct;271 _003C_003CBuild_003Eb__1_003Ed._003C_003E1__state = -1;272 ((AsyncTaskMethodBuilder)(ref _003C_003CBuild_003Eb__1_003Ed._003C_003Et__builder)).Start<_003C_003CBuild_003Eb__1_003Ed>(ref _003C_003CBuild_003Eb__1_003Ed);273 return ((AsyncTaskMethodBuilder)(ref _003C_003CBuild_003Eb__1_003Ed._003C_003Et__builder)).Task;274 })), delegate(IMethodVerb m)275 {276 m.Route.HttpMethods["POST"].UseMethodParameters = false;277 });278 }279280 [AsyncStateMachine(typeof(_003C_003CBuild_003Eb__1_003Ed))]281 internal System.Threading.Tasks.Task _003CBuild_003Eb__1(JobQueueEditInput input, IRequest request, CancellationToken ct)282 {283 //IL_0002: Unknown result type (might be due to invalid IL or missing references)284 //IL_0007: Unknown result type (might be due to invalid IL or missing references)285 //IL_0026: Unknown result type (might be due to invalid IL or missing references)286 //IL_0027: Unknown result type (might be due to invalid IL or missing references)287 _003C_003CBuild_003Eb__1_003Ed _003C_003CBuild_003Eb__1_003Ed = default(_003C_003CBuild_003Eb__1_003Ed);288 _003C_003CBuild_003Eb__1_003Ed._003C_003Et__builder = AsyncTaskMethodBuilder.Create();289 _003C_003CBuild_003Eb__1_003Ed._003C_003E4__this = this;290 _003C_003CBuild_003Eb__1_003Ed.input = input;291 _003C_003CBuild_003Eb__1_003Ed.request = request;292 _003C_003CBuild_003Eb__1_003Ed.ct = ct;293 _003C_003CBuild_003Eb__1_003Ed._003C_003E1__state = -1;294 ((AsyncTaskMethodBuilder)(ref _003C_003CBuild_003Eb__1_003Ed._003C_003Et__builder)).Start<_003C_003CBuild_003Eb__1_003Ed>(ref _003C_003CBuild_003Eb__1_003Ed);295 return ((AsyncTaskMethodBuilder)(ref _003C_003CBuild_003Eb__1_003Ed._003C_003Et__builder)).Task;296 }297 }298299 [StructLayout((LayoutKind)3)]300 [CompilerGenerated]301 private struct _003CHandleJobAsync_003Ed__1 : IAsyncStateMachine302 {303 public int _003C_003E1__state;304305 public AsyncTaskMethodBuilder _003C_003Et__builder;306307 public JobQueueEditInput input;308309 public IEntity j;310311 public CancellationToken ct;312313 private ConfiguredValueTaskAwaiter _003C_003Eu__1;314315 private void MoveNext()316 {317 //IL_00a2: Unknown result type (might be due to invalid IL or missing references)318 //IL_00a7: Unknown result type (might be due to invalid IL or missing references)319 //IL_00ae: Unknown result type (might be due to invalid IL or missing references)320 //IL_0147: Unknown result type (might be due to invalid IL or missing references)321 //IL_014c: Unknown result type (might be due to invalid IL or missing references)322 //IL_0153: Unknown result type (might be due to invalid IL or missing references)323 //IL_01cc: Unknown result type (might be due to invalid IL or missing references)324 //IL_01d1: Unknown result type (might be due to invalid IL or missing references)325 //IL_01d8: Unknown result type (might be due to invalid IL or missing references)326 //IL_028c: Unknown result type (might be due to invalid IL or missing references)327 //IL_0291: Unknown result type (might be due to invalid IL or missing references)328 //IL_0298: Unknown result type (might be due to invalid IL or missing references)329 //IL_0332: Unknown result type (might be due to invalid IL or missing references)330 //IL_0337: Unknown result type (might be due to invalid IL or missing references)331 //IL_033e: Unknown result type (might be due to invalid IL or missing references)332 //IL_0058: Unknown result type (might be due to invalid IL or missing references)333 //IL_0066: Unknown result type (might be due to invalid IL or missing references)334 //IL_006b: Unknown result type (might be due to invalid IL or missing references)335 //IL_006f: Unknown result type (might be due to invalid IL or missing references)336 //IL_0074: Unknown result type (might be due to invalid IL or missing references)337 //IL_00fd: Unknown result type (might be due to invalid IL or missing references)338 //IL_010b: Unknown result type (might be due to invalid IL or missing references)339 //IL_0110: Unknown result type (might be due to invalid IL or missing references)340 //IL_0114: Unknown result type (might be due to invalid IL or missing references)341 //IL_0119: Unknown result type (might be due to invalid IL or missing references)342 //IL_0088: Unknown result type (might be due to invalid IL or missing references)343 //IL_0089: Unknown result type (might be due to invalid IL or missing references)344 //IL_0182: Unknown result type (might be due to invalid IL or missing references)345 //IL_0190: Unknown result type (might be due to invalid IL or missing references)346 //IL_0195: Unknown result type (might be due to invalid IL or missing references)347 //IL_0199: Unknown result type (might be due to invalid IL or missing references)348 //IL_019e: Unknown result type (might be due to invalid IL or missing references)349 //IL_012d: Unknown result type (might be due to invalid IL or missing references)350 //IL_012e: Unknown result type (might be due to invalid IL or missing references)351 //IL_01b2: Unknown result type (might be due to invalid IL or missing references)352 //IL_01b3: Unknown result type (might be due to invalid IL or missing references)353 //IL_02eb: Unknown result type (might be due to invalid IL or missing references)354 //IL_02f9: Unknown result type (might be due to invalid IL or missing references)355 //IL_02fe: Unknown result type (might be due to invalid IL or missing references)356 //IL_0302: Unknown result type (might be due to invalid IL or missing references)357 //IL_0307: Unknown result type (might be due to invalid IL or missing references)358 //IL_0242: Unknown result type (might be due to invalid IL or missing references)359 //IL_0250: Unknown result type (might be due to invalid IL or missing references)360 //IL_0255: Unknown result type (might be due to invalid IL or missing references)361 //IL_0259: Unknown result type (might be due to invalid IL or missing references)362 //IL_025e: Unknown result type (might be due to invalid IL or missing references)363 //IL_031b: Unknown result type (might be due to invalid IL or missing references)364 //IL_031c: Unknown result type (might be due to invalid IL or missing references)365 //IL_0272: Unknown result type (might be due to invalid IL or missing references)366 //IL_0273: Unknown result type (might be due to invalid IL or missing references)367 int num = _003C_003E1__state;368 try369 {370 ConfiguredValueTaskAwaitable val2;371 ConfiguredValueTaskAwaiter val;372 switch (num)373 {374 default:375 if (input.StartAt.HasValue)376 {377 val2 = j.CallMethodAsync("SetStartAt", input.StartAt.Value, ct).ConfigureAwait(false);378 val = ((ConfiguredValueTaskAwaitable)(ref val2)).GetAwaiter();379 if (!((ConfiguredValueTaskAwaiter)(ref val)).IsCompleted)380 {381 num = (_003C_003E1__state = 0);382 _003C_003Eu__1 = val;383 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredValueTaskAwaiter, _003CHandleJobAsync_003Ed__1>(ref val, ref this);384 return;385 }386 goto IL_00bd;387 }388 goto IL_00c4;389 case 0:390 val = _003C_003Eu__1;391 _003C_003Eu__1 = default(ConfiguredValueTaskAwaiter);392 num = (_003C_003E1__state = -1);393 goto IL_00bd;394 case 1:395 val = _003C_003Eu__1;396 _003C_003Eu__1 = default(ConfiguredValueTaskAwaiter);397 num = (_003C_003E1__state = -1);398 goto IL_0162;399 case 2:400 val = _003C_003Eu__1;401 _003C_003Eu__1 = default(ConfiguredValueTaskAwaiter);402 num = (_003C_003E1__state = -1);403 goto IL_01e7;404 case 3:405 val = _003C_003Eu__1;406 _003C_003Eu__1 = default(ConfiguredValueTaskAwaiter);407 num = (_003C_003E1__state = -1);408 goto IL_02a7;409 case 4:410 {411 val = _003C_003Eu__1;412 _003C_003Eu__1 = default(ConfiguredValueTaskAwaiter);413 num = (_003C_003E1__state = -1);414 break;415 }416 IL_02ae:417 if (input.RaisePriority)418 {419 int num2 = j.GetValue("Priority").Int + 1;420 if (num2 < 16)421 {422 val2 = j.CallMethodAsync("SetPriority", num2, ct).ConfigureAwait(false);423 val = ((ConfiguredValueTaskAwaitable)(ref val2)).GetAwaiter();424 if (!((ConfiguredValueTaskAwaiter)(ref val)).IsCompleted)425 {426 num = (_003C_003E1__state = 4);427 _003C_003Eu__1 = val;428 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredValueTaskAwaiter, _003CHandleJobAsync_003Ed__1>(ref val, ref this);429 return;430 }431 break;432 }433 }434 goto end_IL_0007;435 IL_02a7:436 ((ConfiguredValueTaskAwaiter)(ref val)).GetResult();437 goto IL_02ae;438 IL_00bd:439 ((ConfiguredValueTaskAwaiter)(ref val)).GetResult();440 goto IL_00c4;441 IL_00c4:442 if (input.Retries.HasValue)443 {444 val2 = j.CallMethodAsync("SetRetries", input.Retries.Value, ct).ConfigureAwait(false);445 val = ((ConfiguredValueTaskAwaitable)(ref val2)).GetAwaiter();446 if (!((ConfiguredValueTaskAwaiter)(ref val)).IsCompleted)447 {448 num = (_003C_003E1__state = 1);449 _003C_003Eu__1 = val;450 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredValueTaskAwaiter, _003CHandleJobAsync_003Ed__1>(ref val, ref this);451 return;452 }453 goto IL_0162;454 }455 goto IL_0169;456 IL_01e7:457 ((ConfiguredValueTaskAwaiter)(ref val)).GetResult();458 goto IL_01ee;459 IL_01ee:460 if (input.LogMode != LogModeChange.Unchanged)461 {462 LogModeChange logMode = input.LogMode;463 val2 = j.CallMethodAsync("SetLogMode", logMode switch464 {465 LogModeChange.Error => "Error", 466 LogModeChange.Full => "Full", 467 _ => "", 468 }, ct).ConfigureAwait(false);469 val = ((ConfiguredValueTaskAwaitable)(ref val2)).GetAwaiter();470 if (!((ConfiguredValueTaskAwaiter)(ref val)).IsCompleted)471 {472 num = (_003C_003E1__state = 3);473 _003C_003Eu__1 = val;474 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredValueTaskAwaiter, _003CHandleJobAsync_003Ed__1>(ref val, ref this);475 return;476 }477 goto IL_02a7;478 }479 goto IL_02ae;480 IL_0162:481 ((ConfiguredValueTaskAwaiter)(ref val)).GetResult();482 goto IL_0169;483 IL_0169:484 if (input.ResetProcess)485 {486 val2 = j.CallMethodAsync("ResetProcess", ct).ConfigureAwait(false);487 val = ((ConfiguredValueTaskAwaitable)(ref val2)).GetAwaiter();488 if (!((ConfiguredValueTaskAwaiter)(ref val)).IsCompleted)489 {490 num = (_003C_003E1__state = 2);491 _003C_003Eu__1 = val;492 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredValueTaskAwaiter, _003CHandleJobAsync_003Ed__1>(ref val, ref this);493 return;494 }495 goto IL_01e7;496 }497 goto IL_01ee;498 }499 ((ConfiguredValueTaskAwaiter)(ref val)).GetResult();500 end_IL_0007:;501 }502 catch (System.Exception exception)503 {504 _003C_003E1__state = -2;505 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);506 return;507 }508 _003C_003E1__state = -2;509 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();510 }511512 [DebuggerHidden]513 private void SetStateMachine(IAsyncStateMachine stateMachine)514 {515 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);516 }517 }518519 public void Build(IApiBuilder builder)520 {521 _003C_003Ec__DisplayClass0_0 CS_0024_003C_003E8__locals2 = new _003C_003Ec__DisplayClass0_0();522 CS_0024_003C_003E8__locals2.jobQueueCache = JobQueueCache.Get(builder.Resolver);523 ApiBuilderExtensions.Modify(builder, "queue/jobs", (Action<IMethod>)delegate(IMethod method)524 {525 QBM.CompositionApi.Definition.ExtensionMethods.With(method.Handle<JobQueueEditInput>("POST", (Func<JobQueueEditInput, IRequest, CancellationToken, System.Threading.Tasks.Task>)([AsyncStateMachine(typeof(_003C_003Ec__DisplayClass0_0._003C_003CBuild_003Eb__1_003Ed))] (JobQueueEditInput input, IRequest request, CancellationToken ct) =>526 {527 //IL_0002: Unknown result type (might be due to invalid IL or missing references)528 //IL_0007: Unknown result type (might be due to invalid IL or missing references)529 //IL_0026: Unknown result type (might be due to invalid IL or missing references)530 //IL_0027: Unknown result type (might be due to invalid IL or missing references)531 _003C_003Ec__DisplayClass0_0._003C_003CBuild_003Eb__1_003Ed _003C_003CBuild_003Eb__1_003Ed = default(_003C_003Ec__DisplayClass0_0._003C_003CBuild_003Eb__1_003Ed);532 _003C_003CBuild_003Eb__1_003Ed._003C_003Et__builder = AsyncTaskMethodBuilder.Create();533 _003C_003CBuild_003Eb__1_003Ed._003C_003E4__this = CS_0024_003C_003E8__locals2;534 _003C_003CBuild_003Eb__1_003Ed.input = input;535 _003C_003CBuild_003Eb__1_003Ed.request = request;536 _003C_003CBuild_003Eb__1_003Ed.ct = ct;537 _003C_003CBuild_003Eb__1_003Ed._003C_003E1__state = -1;538 ((AsyncTaskMethodBuilder)(ref _003C_003CBuild_003Eb__1_003Ed._003C_003Et__builder)).Start<_003C_003Ec__DisplayClass0_0._003C_003CBuild_003Eb__1_003Ed>(ref _003C_003CBuild_003Eb__1_003Ed);539 return ((AsyncTaskMethodBuilder)(ref _003C_003CBuild_003Eb__1_003Ed._003C_003Et__builder)).Task;540 })), delegate(IMethodVerb m)541 {542 m.Route.HttpMethods["POST"].UseMethodParameters = false;543 });544 });545 }546547 [AsyncStateMachine(typeof(_003CHandleJobAsync_003Ed__1))]548 private static System.Threading.Tasks.Task HandleJobAsync(JobQueueEditInput input, IEntity j, CancellationToken ct)549 {550 //IL_0002: Unknown result type (might be due to invalid IL or missing references)551 //IL_0007: Unknown result type (might be due to invalid IL or missing references)552 //IL_001e: Unknown result type (might be due to invalid IL or missing references)553 //IL_001f: Unknown result type (might be due to invalid IL or missing references)554 _003CHandleJobAsync_003Ed__1 _003CHandleJobAsync_003Ed__ = default(_003CHandleJobAsync_003Ed__1);555 _003CHandleJobAsync_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();556 _003CHandleJobAsync_003Ed__.input = input;557 _003CHandleJobAsync_003Ed__.j = j;558 _003CHandleJobAsync_003Ed__.ct = ct;559 _003CHandleJobAsync_003Ed__._003C_003E1__state = -1;560 ((AsyncTaskMethodBuilder)(ref _003CHandleJobAsync_003Ed__._003C_003Et__builder)).Start<_003CHandleJobAsync_003Ed__1>(ref _003CHandleJobAsync_003Ed__);561 return ((AsyncTaskMethodBuilder)(ref _003CHandleJobAsync_003Ed__._003C_003Et__builder)).Task;562 }563}564