private readonly List <WeakReference <PrivateUserDataContext> > currentContexts = new List <WeakReference <PrivateUserDataContext> >(); // current active user contexts #region -- Ctor/Dtor/Idle ------------------------------------------------- public PrivateUserData(PpsApplication application, long userId, PpsUserIdentity userIdentity) { this.application = application ?? throw new ArgumentNullException(nameof(application)); this.userId = userId; if (userId == sysUserId) // mark system user { if (userIdentity != null) { throw new ArgumentException("UserIdentity must be null.", nameof(userIdentity)); } userIdentity = localIdentity = PpsUserIdentity.System; this[UserContextFullName] = "System"; } this.userIdentity = userIdentity; log = LoggerProxy.Create(application, userIdentity.Name); application.Server.RegisterUser(this); // register the user in http-server } // ctor
public PpsReportSession(PpsApplication application) { this.application = application ?? throw new ArgumentNullException(nameof(application)); } // ctor
public PpsServerReportProvider(PpsApplication application) { this.application = application ?? throw new ArgumentNullException(nameof(application)); } // ctor
/// <summary></summary> /// <param name="sp"></param> /// <param name="name"></param> public PpsSysDataSource(IServiceProvider sp, string name) : base(sp, name) { this.application = sp.GetService <PpsApplication>(true); this.systemConnection = new PpsSysConnectionHandle(this, PpsUserIdentity.System); } // ctor