Back to OIM Explorer

Common.Customizer/VI.Common.Customizer/DialogNextID.cs

Decompiler Source FileCommon.Customizer.DialogNextIDDecompiled Source

1 extracted method/event/call references in DialogNextID.

Source: F:\Claude\.tmp\oim-decompiled-full\0045_One_Identity_Manager_Common.Customizer.dll\VI.Common.Customizer\DialogNextID.cs

Source size: 5.188 characters

Interpretation

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

Relations

  • Method registration: GetNextID at line 118

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

Summary: classes DialogNextID; methods MoveNext, SetStateMachine, _GetNextId; references DialogNextID; markers reads entity values, references DB/Dialog objects

Classes

DialogNextID

DB/Dialog object references

OIM key/entity markers

None extracted.

API/entity calls

GetValueAsync

Registrations / handlers

None extracted.

Complete Source

C#132 lines
1using System;2using System.Diagnostics;3using System.Runtime.CompilerServices;4using System.Runtime.InteropServices;5using System.Threading;6using System.Threading.Tasks;7using VI.Base;8using VI.DB.DataAccess;9using VI.DB.Entities;1011namespace VI.Common.Customizer;1213public class DialogNextID : StateLessEntityLogic14{15	[StructLayout((LayoutKind)3)]16	[CompilerGenerated]17	private struct _003C_GetNextId_003Ed__1 : IAsyncStateMachine18	{19		public int _003C_003E1__state;2021		public AsyncTaskMethodBuilder<long> _003C_003Et__builder;2223		public IEntity entity;2425		public CancellationToken ct;2627		public ISession session;2829		private ConfiguredValueTaskAwaiter<string> _003C_003Eu__1;3031		private ConfiguredTaskAwaiter<long> _003C_003Eu__2;3233		private void MoveNext()34		{35			//IL_0068: Unknown result type (might be due to invalid IL or missing references)36			//IL_006d: Unknown result type (might be due to invalid IL or missing references)37			//IL_0074: Unknown result type (might be due to invalid IL or missing references)38			//IL_0098: Unknown result type (might be due to invalid IL or missing references)39			//IL_00a3: Unknown result type (might be due to invalid IL or missing references)40			//IL_00a8: Unknown result type (might be due to invalid IL or missing references)41			//IL_00ac: Unknown result type (might be due to invalid IL or missing references)42			//IL_00b1: Unknown result type (might be due to invalid IL or missing references)43			//IL_00de: Unknown result type (might be due to invalid IL or missing references)44			//IL_00e3: Unknown result type (might be due to invalid IL or missing references)45			//IL_00eb: Unknown result type (might be due to invalid IL or missing references)46			//IL_001d: Unknown result type (might be due to invalid IL or missing references)47			//IL_002c: Unknown result type (might be due to invalid IL or missing references)48			//IL_0031: Unknown result type (might be due to invalid IL or missing references)49			//IL_0035: Unknown result type (might be due to invalid IL or missing references)50			//IL_003a: Unknown result type (might be due to invalid IL or missing references)51			//IL_00c6: Unknown result type (might be due to invalid IL or missing references)52			//IL_00c8: Unknown result type (might be due to invalid IL or missing references)53			//IL_004e: Unknown result type (might be due to invalid IL or missing references)54			//IL_004f: Unknown result type (might be due to invalid IL or missing references)55			int num = _003C_003E1__state;56			long result2;57			try58			{59				ConfiguredTaskAwaiter<long> val;60				ConfiguredValueTaskAwaiter<string> val2;61				if (num != 0)62				{63					if (num == 1)64					{65						val = _003C_003Eu__2;66						_003C_003Eu__2 = default(ConfiguredTaskAwaiter<long>);67						num = (_003C_003E1__state = -1);68						goto IL_00fa;69					}70					val2 = entity.GetValueAsync<string>("Ident_DialogNextID", ct).ConfigureAwait(false).GetAwaiter();71					if (!val2.IsCompleted)72					{73						num = (_003C_003E1__state = 0);74						_003C_003Eu__1 = val2;75						_003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredValueTaskAwaiter<string>, _003C_GetNextId_003Ed__1>(ref val2, ref this);76						return;77					}78				}79				else80				{81					val2 = _003C_003Eu__1;82					_003C_003Eu__1 = default(ConfiguredValueTaskAwaiter<string>);83					num = (_003C_003E1__state = -1);84				}85				string result = val2.GetResult();86				val = IdGenerator.GetNextIdAsync(session.Resolve<IDbSession>(), result, ct).ConfigureAwait(false).GetAwaiter();87				if (!val.IsCompleted)88				{89					num = (_003C_003E1__state = 1);90					_003C_003Eu__2 = val;91					_003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<long>, _003C_GetNextId_003Ed__1>(ref val, ref this);92					return;93				}94				goto IL_00fa;95				IL_00fa:96				result2 = val.GetResult();97			}98			catch (System.Exception exception)99			{100				_003C_003E1__state = -2;101				_003C_003Et__builder.SetException(exception);102				return;103			}104			_003C_003E1__state = -2;105			_003C_003Et__builder.SetResult(result2);106		}107108		[DebuggerHidden]109		private void SetStateMachine(IAsyncStateMachine stateMachine)110		{111			_003C_003Et__builder.SetStateMachine(stateMachine);112		}113	}114115	public DialogNextID()116	{117		CanEdit("NextNumber").Default(value: false);118		RegisterMethod("GetNextID").As(_GetNextId).Description("Method_DialogNextID_GetNextID");119	}120121	[AsyncStateMachine(typeof(_003C_GetNextId_003Ed__1))]122	private async System.Threading.Tasks.Task<long> _GetNextId(ISession session, IEntity entity, CancellationToken ct)123	{124		//IL_0002: Unknown result type (might be due to invalid IL or missing references)125		//IL_0007: Unknown result type (might be due to invalid IL or missing references)126		//IL_001e: Unknown result type (might be due to invalid IL or missing references)127		//IL_001f: Unknown result type (might be due to invalid IL or missing references)128		string identifier = await entity.GetValueAsync<string>("Ident_DialogNextID", ct).ConfigureAwait(false);129		return await IdGenerator.GetNextIdAsync(session.Resolve<IDbSession>(), identifier, ct).ConfigureAwait(false);130	}131}132