public OperationContext(EntityApp app, UserInfo user = null, WebCallContext webContext = null, DbConnectionReuseMode connectionMode = DbConnectionReuseMode.NoReuse) { App = app; User = user ?? UserInfo.Anonymous; WebContext = webContext; DbConnectionMode = connectionMode; LocalLog = new MemoryLog(this); Disposables = new ConcurrentDisposableSet(); }
//Used for creating System-level context within user operation public OperationContext(OperationContext parentContext, UserInfo user) { App = parentContext.App; User = user; WebContext = parentContext.WebContext; LocalLog = parentContext.LocalLog; UserSession = parentContext.UserSession; DataSourceName = parentContext.DataSourceName; DbConnectionMode = parentContext.DbConnectionMode; Disposables = parentContext.Disposables; }