private ExecutionContext(ExecutionContext parent, IRequest request, SqlStatement statement) { if (request == null) throw new ArgumentNullException("request"); Parent = parent; Request = request; Statement = statement; Assertions = new SecurityAssertionRegistrar(parent != null ? parent.Assertions : null); Actions = new SecurityActionRegistrar(); }
private ExecutionContext(ExecutionContext parent, IRequest request, SqlStatement statement) { if (request == null) { throw new ArgumentNullException("request"); } Parent = parent; Request = request; Statement = statement; Assertions = new SecurityAssertionRegistrar(parent != null ? parent.Assertions : null); Actions = new SecurityActionRegistrar(); }
private void Dispose(bool disposing) { if (disposing) { if (Assertions != null) { Assertions.Dispose(); } if (Actions != null) { (Actions as IDisposable).Dispose(); } } Statement = null; Parent = null; Request = null; Result = null; Cursor = null; Assertions = null; Actions = null; }