Back to OIM Explorer

QER.CompositionApi/QER.CompositionApi.ITShop/AcceptTermsOfUse.cs

Decompiler Source FileQER.CompositionApi.AcceptTermsOfUseDecompiled Source

1 extracted method/event/call references in AcceptTermsOfUse.

Source: F:\Claude\.tmp\oim-decompiled-full\0989_One_Identity_Manager_QER.CompositionApi.dll\QER.CompositionApi.ITShop\AcceptTermsOfUse.cs

Source size: 11.594 characters

Interpretation

  • Decompiled source file. Use method/event registrations and call-site extraction to connect back to DialogMethod, QBMEvent, and API layers.

Relations

  • CallMethodAsync: AddHistoryEntry at line 197

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 writes entity values saves entities references DB/Dialog objects IT Shop related markers

Summary: classes AcceptTermsOfUse; methods MoveNext, SetStateMachine, AcceptAsync; references Person, PersonWantsOrg, PWODecisionHistory, QERJustification; markers reads entity values, writes entity values, saves entities, references DB/Dialog objects, IT Shop related markers

Classes

AcceptTermsOfUse

OIM key/entity markers

UID_QERJustification UID_PersonWantsOrg

API/entity calls

SaveAsync PutValue GetValue From Source

Registrations / handlers

None extracted.

Complete Source

C#265 lines
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;9using VI.DB.Entities.Transport;1011namespace QER.CompositionApi.ITShop;1213public static class AcceptTermsOfUse14{15	[StructLayout((LayoutKind)3)]16	[CompilerGenerated]17	private struct _003CAcceptAsync_003Ed__0 : IAsyncStateMachine18	{19		public int _003C_003E1__state;2021		public AsyncTaskMethodBuilder _003C_003Et__builder;2223		public string uidPwo;2425		public ISession session;2627		public CancellationToken ct;2829		private IEntity _003Cpwo_003E5__2;3031		private ConfiguredTaskAwaiter<IEntity> _003C_003Eu__1;3233		private ConfiguredTaskAwaiter _003C_003Eu__2;3435		private void MoveNext()36		{37			//IL_0098: Unknown result type (might be due to invalid IL or missing references)38			//IL_009d: Unknown result type (might be due to invalid IL or missing references)39			//IL_00a5: Unknown result type (might be due to invalid IL or missing references)40			//IL_0113: Unknown result type (might be due to invalid IL or missing references)41			//IL_0118: Unknown result type (might be due to invalid IL or missing references)42			//IL_0120: Unknown result type (might be due to invalid IL or missing references)43			//IL_0189: Unknown result type (might be due to invalid IL or missing references)44			//IL_018e: Unknown result type (might be due to invalid IL or missing references)45			//IL_0196: Unknown result type (might be due to invalid IL or missing references)46			//IL_004f: Unknown result type (might be due to invalid IL or missing references)47			//IL_005a: Unknown result type (might be due to invalid IL or missing references)48			//IL_005f: Unknown result type (might be due to invalid IL or missing references)49			//IL_0063: Unknown result type (might be due to invalid IL or missing references)50			//IL_0068: Unknown result type (might be due to invalid IL or missing references)51			//IL_00ca: Unknown result type (might be due to invalid IL or missing references)52			//IL_00d5: Unknown result type (might be due to invalid IL or missing references)53			//IL_00da: Unknown result type (might be due to invalid IL or missing references)54			//IL_00de: Unknown result type (might be due to invalid IL or missing references)55			//IL_00e3: Unknown result type (might be due to invalid IL or missing references)56			//IL_0143: Unknown result type (might be due to invalid IL or missing references)57			//IL_014e: Unknown result type (might be due to invalid IL or missing references)58			//IL_0153: Unknown result type (might be due to invalid IL or missing references)59			//IL_0157: Unknown result type (might be due to invalid IL or missing references)60			//IL_015c: Unknown result type (might be due to invalid IL or missing references)61			//IL_007d: Unknown result type (might be due to invalid IL or missing references)62			//IL_007f: Unknown result type (might be due to invalid IL or missing references)63			//IL_00f8: Unknown result type (might be due to invalid IL or missing references)64			//IL_00fa: Unknown result type (might be due to invalid IL or missing references)65			//IL_0171: Unknown result type (might be due to invalid IL or missing references)66			//IL_0173: Unknown result type (might be due to invalid IL or missing references)67			int num = _003C_003E1__state;68			try69			{70				ConfiguredTaskAwaiter<IEntity> val2;71				ConfiguredTaskAwaiter val;72				ConfiguredTaskAwaitable val3;73				IEntity result;74				switch (num)75				{76				default:77				{78					Query query = Query.From("PersonWantsOrg").SelectDisplays().Where((IDbObjectKey)new DbObjectKey("PersonWantsOrg", uidPwo));79					val2 = session.Source().GetAsync(query, EntityLoadType.DelayedLogic, ct).ConfigureAwait(false)80						.GetAwaiter();81					if (!val2.IsCompleted)82					{83						num = (_003C_003E1__state = 0);84						_003C_003Eu__1 = val2;85						((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<IEntity>, _003CAcceptAsync_003Ed__0>(ref val2, ref this);86						return;87					}88					goto IL_00b4;89				}90				case 0:91					val2 = _003C_003Eu__1;92					_003C_003Eu__1 = default(ConfiguredTaskAwaiter<IEntity>);93					num = (_003C_003E1__state = -1);94					goto IL_00b4;95				case 1:96					val = _003C_003Eu__2;97					_003C_003Eu__2 = default(ConfiguredTaskAwaiter);98					num = (_003C_003E1__state = -1);99					goto IL_012f;100				case 2:101					{102						val = _003C_003Eu__2;103						_003C_003Eu__2 = default(ConfiguredTaskAwaiter);104						num = (_003C_003E1__state = -1);105						break;106					}107					IL_012f:108					((ConfiguredTaskAwaiter)(ref val)).GetResult();109					val3 = _003Cpwo_003E5__2.SaveAsync(session, ct).ConfigureAwait(false);110					val = ((ConfiguredTaskAwaitable)(ref val3)).GetAwaiter();111					if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)112					{113						num = (_003C_003E1__state = 2);114						_003C_003Eu__2 = val;115						((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CAcceptAsync_003Ed__0>(ref val, ref this);116						return;117					}118					break;119					IL_00b4:120					result = val2.GetResult();121					_003Cpwo_003E5__2 = result;122					val3 = AcceptAsync(_003Cpwo_003E5__2, ct).ConfigureAwait(false);123					val = ((ConfiguredTaskAwaitable)(ref val3)).GetAwaiter();124					if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)125					{126						num = (_003C_003E1__state = 1);127						_003C_003Eu__2 = val;128						((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CAcceptAsync_003Ed__0>(ref val, ref this);129						return;130					}131					goto IL_012f;132				}133				((ConfiguredTaskAwaiter)(ref val)).GetResult();134			}135			catch (System.Exception exception)136			{137				_003C_003E1__state = -2;138				_003Cpwo_003E5__2 = null;139				((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);140				return;141			}142			_003C_003E1__state = -2;143			_003Cpwo_003E5__2 = null;144			((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();145		}146147		[DebuggerHidden]148		private void SetStateMachine(IAsyncStateMachine stateMachine)149		{150			((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);151		}152	}153154	[StructLayout((LayoutKind)3)]155	[CompilerGenerated]156	private struct _003CAcceptAsync_003Ed__1 : IAsyncStateMachine157	{158		public int _003C_003E1__state;159160		public AsyncTaskMethodBuilder _003C_003Et__builder;161162		public IEntity pwo;163164		public CancellationToken ct;165166		private ConfiguredValueTaskAwaiter _003C_003Eu__1;167168		private void MoveNext()169		{170			//IL_00e7: Unknown result type (might be due to invalid IL or missing references)171			//IL_00ec: Unknown result type (might be due to invalid IL or missing references)172			//IL_00f3: Unknown result type (might be due to invalid IL or missing references)173			//IL_00a0: Unknown result type (might be due to invalid IL or missing references)174			//IL_00ae: Unknown result type (might be due to invalid IL or missing references)175			//IL_00b3: Unknown result type (might be due to invalid IL or missing references)176			//IL_00b7: Unknown result type (might be due to invalid IL or missing references)177			//IL_00bc: Unknown result type (might be due to invalid IL or missing references)178			//IL_00d0: Unknown result type (might be due to invalid IL or missing references)179			//IL_00d1: Unknown result type (might be due to invalid IL or missing references)180			int num = _003C_003E1__state;181			try182			{183				ConfiguredValueTaskAwaiter val2;184				if (num != 0)185				{186					EntityData entityData = new EntityData187					{188						Key = new KeyData189						{190							Table = "PWODecisionHistory"191						}192					};193					entityData.PutValue("UID_QERJustification", "QER-95f268209082426aa7d8b5e6d5e0d242");194					entityData.PutValue("UID_PersonWantsOrg", pwo.GetValue("UID_PersonWantsOrg").String);195					entityData.PutValue("DisplayPersonHead", "#LDS#Automatic approval.");196					entityData.PutValue("OrderState", pwo.GetValue("OrderState").String);197					ConfiguredValueTaskAwaitable val = pwo.CallMethodAsync("AddHistoryEntry", entityData.ToXml(formatted: false), ct).ConfigureAwait(false);198					val2 = ((ConfiguredValueTaskAwaitable)(ref val)).GetAwaiter();199					if (!((ConfiguredValueTaskAwaiter)(ref val2)).IsCompleted)200					{201						num = (_003C_003E1__state = 0);202						_003C_003Eu__1 = val2;203						((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredValueTaskAwaiter, _003CAcceptAsync_003Ed__1>(ref val2, ref this);204						return;205					}206				}207				else208				{209					val2 = _003C_003Eu__1;210					_003C_003Eu__1 = default(ConfiguredValueTaskAwaiter);211					num = (_003C_003E1__state = -1);212				}213				((ConfiguredValueTaskAwaiter)(ref val2)).GetResult();214			}215			catch (System.Exception exception)216			{217				_003C_003E1__state = -2;218				((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);219				return;220			}221			_003C_003E1__state = -2;222			((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();223		}224225		[DebuggerHidden]226		private void SetStateMachine(IAsyncStateMachine stateMachine)227		{228			((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);229		}230	}231232	[AsyncStateMachine(typeof(_003CAcceptAsync_003Ed__0))]233	public static System.Threading.Tasks.Task AcceptAsync(ISession session, string uidPwo, CancellationToken ct = default(CancellationToken))234	{235		//IL_0002: Unknown result type (might be due to invalid IL or missing references)236		//IL_0007: Unknown result type (might be due to invalid IL or missing references)237		//IL_001e: Unknown result type (might be due to invalid IL or missing references)238		//IL_001f: Unknown result type (might be due to invalid IL or missing references)239		_003CAcceptAsync_003Ed__0 _003CAcceptAsync_003Ed__ = default(_003CAcceptAsync_003Ed__0);240		_003CAcceptAsync_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();241		_003CAcceptAsync_003Ed__.session = session;242		_003CAcceptAsync_003Ed__.uidPwo = uidPwo;243		_003CAcceptAsync_003Ed__.ct = ct;244		_003CAcceptAsync_003Ed__._003C_003E1__state = -1;245		((AsyncTaskMethodBuilder)(ref _003CAcceptAsync_003Ed__._003C_003Et__builder)).Start<_003CAcceptAsync_003Ed__0>(ref _003CAcceptAsync_003Ed__);246		return ((AsyncTaskMethodBuilder)(ref _003CAcceptAsync_003Ed__._003C_003Et__builder)).Task;247	}248249	[AsyncStateMachine(typeof(_003CAcceptAsync_003Ed__1))]250	public static System.Threading.Tasks.Task AcceptAsync(IEntity pwo, CancellationToken ct)251	{252		//IL_0002: Unknown result type (might be due to invalid IL or missing references)253		//IL_0007: Unknown result type (might be due to invalid IL or missing references)254		//IL_0016: Unknown result type (might be due to invalid IL or missing references)255		//IL_0017: Unknown result type (might be due to invalid IL or missing references)256		_003CAcceptAsync_003Ed__1 _003CAcceptAsync_003Ed__ = default(_003CAcceptAsync_003Ed__1);257		_003CAcceptAsync_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();258		_003CAcceptAsync_003Ed__.pwo = pwo;259		_003CAcceptAsync_003Ed__.ct = ct;260		_003CAcceptAsync_003Ed__._003C_003E1__state = -1;261		((AsyncTaskMethodBuilder)(ref _003CAcceptAsync_003Ed__._003C_003Et__builder)).Start<_003CAcceptAsync_003Ed__1>(ref _003CAcceptAsync_003Ed__);262		return ((AsyncTaskMethodBuilder)(ref _003CAcceptAsync_003Ed__._003C_003Et__builder)).Task;263	}264}265