Beispiel #1
0
        public ImportService(Guid districtId, SisConnectionInfo connectionInfo, BackgroundTaskService.BackgroundTaskLog log)
        {
            ConnectionInfo  = connectionInfo;
            Log             = log;
            this.districtId = districtId;
            var admin = new User {
                Id = Guid.Empty, Login = "******", LoginInfo = new UserLoginInfo()
            };

            sysadminCntx = new UserContext(admin, CoreRoles.SUPER_ADMIN_ROLE, null, null, null, null, null);
        }
Beispiel #2
0
        public ImportService(Guid districtId, SisConnectionInfo connectionInfo, BackgroundTaskService.BackgroundTaskLog log, Guid taskId)
        {
            // TODO: obviously we don't want duplicate code here
            this.taskId     = taskId;
            ConnectionInfo  = connectionInfo;
            Log             = log;
            this.districtId = districtId;
            var admin = new User {
                Id = Guid.Empty, Login = "******", LoginInfo = new UserLoginInfo()
            };

            sysadminCntx = new UserContext(admin, CoreRoles.SUPER_ADMIN_ROLE, null, null, null, null, null);
        }