Shaolinq.TransactionContext.OnVersionContextFinished C# (CSharp) Method

OnVersionContextFinished() private method

private OnVersionContextFinished ( object sender, EventArgs eventArgs ) : void
sender object
eventArgs System.EventArgs
return void
		private void OnVersionContextFinished(object sender, EventArgs eventArgs)
		{
			if (this.disposed)
			{
				throw new ObjectDisposedException(nameof(TransactionContext));
			}

			if (this.DataAccessTransaction == null)
			{
				this.dataAccessObjectDataContext = null;
				this.commandsContext?.Dispose();
				this.dataAccessModel.AsyncLocalAmbientTransactionContext = null;
				this.Dispose();
			}
		}