コード例 #1
0
ファイル: SyncUser.cs プロジェクト: Niranjanpuree/Projects
        public void SyncUserFromActiveDirectory()
        {
            var syncBatch = new SyncBatch();

            syncBatch.BatchStart = DateTime.Now;
            Guid batchGuid = _syncBatchService.Insert(syncBatch);

            _userSyncService.SyncUsersFromActiveDirectory(_adContext, batchGuid);
        }
コード例 #2
0
        public IActionResult Index()
        {
            var syncBatch = new SyncBatch();

            syncBatch.BatchStart = DateTime.Now;
            Guid batchGuid = _syncBatchService.Insert(syncBatch);

            //_groupSyncService.SyncGroupsFromActiveDirectory(_adContext, batchGuid);
            //_groupSyncService.SyncGroupUsersAndManagerFromActiveDirectory(_adContext, batchGuid);
            _userSyncService.SyncUsersFromActiveDirectory(_adContext, batchGuid);


            return(View());
        }