Inheritance: SystemAccess
Ejemplo n.º 1
0
        public SystemSession(ITransaction transaction, string currentSchema)
        {
            if (String.IsNullOrEmpty(currentSchema))
                throw new ArgumentNullException("currentSchema");
            if (transaction == null)
                throw new ArgumentNullException("transaction");

            CurrentSchema =currentSchema;
            Transaction = transaction;
            Context = transaction.Context.CreateSessionContext();
            Context.RegisterInstance(this);

            User = new User(this, User.SystemName);

            startedOn = DateTimeOffset.UtcNow;

            Access = new SessionAccess(this);
        }
Ejemplo n.º 2
0
        public SystemSession(ITransaction transaction, string currentSchema)
        {
            if (String.IsNullOrEmpty(currentSchema))
            {
                throw new ArgumentNullException("currentSchema");
            }
            if (transaction == null)
            {
                throw new ArgumentNullException("transaction");
            }

            CurrentSchema = currentSchema;
            Transaction   = transaction;
            Context       = transaction.Context.CreateSessionContext();
            Context.RegisterInstance(this);

            User = new User(this, User.SystemName);

            startedOn = DateTimeOffset.UtcNow;

            Access = new SessionAccess(this);
        }