Exemplo n.º 1
0
        private async Task ContinueAndDetachIfTerminated(OracleDebugBreakFlags breakFlags, CancellationToken cancellationToken)
        {
            CurrentException = null;

            await Continue(breakFlags, cancellationToken);

            if (_runtimeInfo.Reason == OracleDebugReason.Exception)
            {
                CurrentException =
                    new DatabaseExceptionInformation
                {
                    ErrorCode    = _runtimeInfo.OerException.Value,
                    ErrorMessage = await GetOracleExceptionMessage(_runtimeInfo.OerException.Value, cancellationToken)
                };
            }

            if (_runtimeInfo.IsTerminated == true)
            {
                await Detach(cancellationToken);
            }
        }
Exemplo n.º 2
0
		private async Task ContinueAndDetachIfTerminated(OracleDebugBreakFlags breakFlags, CancellationToken cancellationToken)
		{
			CurrentException = null;

			await Continue(breakFlags, cancellationToken);

			if (_runtimeInfo.Reason == OracleDebugReason.Exception)
			{
				CurrentException =
					new DatabaseExceptionInformation
					{
						ErrorCode = _runtimeInfo.OerException.Value,
						ErrorMessage = await GetOracleExceptionMessage(_runtimeInfo.OerException.Value, cancellationToken)
					};
			}

			if (_runtimeInfo.IsTerminated == true)
			{
				await Detach(cancellationToken);
			}
		}