Ejemplo n.º 1
0
            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
Ejemplo n.º 2
0
 public PpsReportSession(PpsApplication application)
 {
     this.application = application ?? throw new ArgumentNullException(nameof(application));
 }             // ctor
Ejemplo n.º 3
0
 public PpsServerReportProvider(PpsApplication application)
 {
     this.application = application ?? throw new ArgumentNullException(nameof(application));
 }             // ctor
Ejemplo n.º 4
0
 /// <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