Пример #1
0
        protected LdapOperation(LdapSettings settings, Tenant tenant, LdapOperationType operationType, LdapLocalization resource = null)
        {
            CurrentTenant = tenant;

            OperationType = operationType;

            _culture = Thread.CurrentThread.CurrentCulture.Name;

            LDAPSettings = settings;

            Source   = "";
            Progress = 0;
            Status   = "";
            Error    = "";
            Source   = "";

            TaskInfo = new DistributedTask();

            Resource = resource ?? new LdapLocalization();

            LDAPUserManager = new LdapUserManager(Resource);
        }
Пример #2
0
 public LdapSaveSyncOperation(LdapSettings settings, Tenant tenant, LdapOperationType operation, LdapLocalization resource = null, string userId = null)
     : base(settings, tenant, operation, resource)
 {
     _ldapChanges = new LdapChangeCollection {
         Tenant = tenant
     };
     _currentUser = userId != null?CoreContext.UserManager.GetUsers(Guid.Parse(userId)) : null;
 }
Пример #3
0
 public LdapSaveSyncOperation(LdapSettings settings, Tenant tenant, LdapOperationType operation, LdapLocalization resource = null)
     : base(settings, tenant, operation, resource)
 {
     _ldapChanges = new LdapChangeCollection {
         Tenant = tenant
     };
 }