QER.Customizer/QER.Customizer/PersonHasQERResource.cs
Decompiler Source FileQER.Customizer.PersonHasQERResourceDecompiled Source
Interpretation
- Decompiled source file. Use method/event registrations and call-site extraction to connect back to DialogMethod, QBMEvent, and API layers.
Relations
- Method registration: CreateITShopOrder at line 107
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.
references DB/Dialog objects IT Shop related markers
Summary: classes PersonHasQERResource; methods MoveNext, SetStateMachine, CreateITShopOrder; references Person, PersonHasQERResource, QERResource; markers references DB/Dialog objects, IT Shop related markers
Classes
PersonHasQERResourceDB/Dialog object references
OIM key/entity markers
UID_QERResource UID_PersonAPI/entity calls
None extracted.Registrations / handlers
None extracted.
Complete Source
1using System;2using System.Diagnostics;3using System.Runtime.CompilerServices;4using System.Runtime.InteropServices;5using System.Threading;6using System.Threading.Tasks;7using VI.DB;8using VI.DB.Entities;910namespace QER.Customizer;1112public class PersonHasQERResource : StateBasedEntityLogic13{14 [StructLayout((LayoutKind)3)]15 [CompilerGenerated]16 private struct _003CCreateITShopOrder_003Ed__1 : IAsyncStateMachine17 {18 public int _003C_003E1__state;1920 public AsyncTaskMethodBuilder _003C_003Et__builder;2122 public PersonHasQERResource _003C_003E4__this;2324 public ISession session;2526 public IEntity entity;2728 public string customScriptName;2930 public CancellationToken ct;3132 private System.IDisposable _003C_003E7__wrap1;3334 private ConfiguredTaskAwaiter _003C_003Eu__1;3536 private void MoveNext()37 {38 //IL_0081: Unknown result type (might be due to invalid IL or missing references)39 //IL_0086: Unknown result type (might be due to invalid IL or missing references)40 //IL_008d: Unknown result type (might be due to invalid IL or missing references)41 //IL_003e: Unknown result type (might be due to invalid IL or missing references)42 //IL_0049: Unknown result type (might be due to invalid IL or missing references)43 //IL_004e: Unknown result type (might be due to invalid IL or missing references)44 //IL_0051: Unknown result type (might be due to invalid IL or missing references)45 //IL_0056: Unknown result type (might be due to invalid IL or missing references)46 //IL_006a: Unknown result type (might be due to invalid IL or missing references)47 //IL_006b: Unknown result type (might be due to invalid IL or missing references)48 int num = _003C_003E1__state;49 PersonHasQERResource personHasQERResource = _003C_003E4__this;50 try51 {52 if (num != 0)53 {54 _003C_003E7__wrap1 = personHasQERResource.StartInternalProcess();55 }56 try57 {58 ConfiguredTaskAwaiter val2;59 if (num != 0)60 {61 ConfiguredTaskAwaitable val = ITShopHelperAsync.CreateMemberITShopOrder(session, entity, "UID_QERResource", "UID_Person", customScriptName, ct).ConfigureAwait(false);62 val2 = ((ConfiguredTaskAwaitable)(ref val)).GetAwaiter();63 if (!((ConfiguredTaskAwaiter)(ref val2)).IsCompleted)64 {65 num = (_003C_003E1__state = 0);66 _003C_003Eu__1 = val2;67 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CCreateITShopOrder_003Ed__1>(ref val2, ref this);68 return;69 }70 }71 else72 {73 val2 = _003C_003Eu__1;74 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);75 num = (_003C_003E1__state = -1);76 }77 ((ConfiguredTaskAwaiter)(ref val2)).GetResult();78 }79 finally80 {81 if (num < 0 && _003C_003E7__wrap1 != null)82 {83 _003C_003E7__wrap1.Dispose();84 }85 }86 _003C_003E7__wrap1 = null;87 }88 catch (System.Exception exception)89 {90 _003C_003E1__state = -2;91 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);92 return;93 }94 _003C_003E1__state = -2;95 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();96 }9798 [DebuggerHidden]99 private void SetStateMachine(IAsyncStateMachine stateMachine)100 {101 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);102 }103 }104105 public PersonHasQERResource()106 {107 RegisterMethod("CreateITShopOrder").As<string>(CreateITShopOrder).Description("Method_CreateITShopOrder").Behavior(MethodBehavior.ChangesExternalState)108 .Enabled()109 .Default(value: false)110 .Enabled()111 .From("XOrigin")112 .As<int>((Func<int, bool>)((int xOrigin) => (xOrigin & 8) == 0))113 .Visible()114 .Default(value: false)115 .Visible()116 .From("XOrigin")117 .As<int>((Func<int, bool>)((int xOrigin) => (xOrigin & 8) == 0));118 }119120 [AsyncStateMachine(typeof(_003CCreateITShopOrder_003Ed__1))]121 private System.Threading.Tasks.Task CreateITShopOrder(ISession session, IEntity entity, string customScriptName, CancellationToken ct)122 {123 //IL_0002: Unknown result type (might be due to invalid IL or missing references)124 //IL_0007: Unknown result type (might be due to invalid IL or missing references)125 //IL_002e: Unknown result type (might be due to invalid IL or missing references)126 //IL_0030: Unknown result type (might be due to invalid IL or missing references)127 _003CCreateITShopOrder_003Ed__1 _003CCreateITShopOrder_003Ed__ = default(_003CCreateITShopOrder_003Ed__1);128 _003CCreateITShopOrder_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();129 _003CCreateITShopOrder_003Ed__._003C_003E4__this = this;130 _003CCreateITShopOrder_003Ed__.session = session;131 _003CCreateITShopOrder_003Ed__.entity = entity;132 _003CCreateITShopOrder_003Ed__.customScriptName = customScriptName;133 _003CCreateITShopOrder_003Ed__.ct = ct;134 _003CCreateITShopOrder_003Ed__._003C_003E1__state = -1;135 ((AsyncTaskMethodBuilder)(ref _003CCreateITShopOrder_003Ed__._003C_003Et__builder)).Start<_003CCreateITShopOrder_003Ed__1>(ref _003CCreateITShopOrder_003Ed__);136 return ((AsyncTaskMethodBuilder)(ref _003CCreateITShopOrder_003Ed__._003C_003Et__builder)).Task;137 }138}139