Example #1
0
        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();
        }
Example #2
0
        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();
        }
Example #3
0
        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;
        }