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); }
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); }