Inheritance: SystemAccess
Esempio 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);
        }
Esempio 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);
        }