private void ReleaseGate() { RateLimiter.ReleaseGate(CourseStudentRequestFactory.limiterName); }
internal CourseStudentRequestFactory(BaseClientServicePool <ClassroomService> classroomServicePool) { this.classRoomServicePool = classroomServicePool; RateLimiter.SetConcurrentLimit(CourseStudentRequestFactory.limiterName, CourseStudentRequestFactory.ConcurrentOperationLimitDefault); }
private void WaitForGate() { RateLimiter.WaitForGate(CourseStudentRequestFactory.limiterName); }
public static void SetRateLimitContactsService(int requestsPerInterval, TimeSpan interval) { RateLimiter.SetRateLimit(typeof(ContactsService).Name, requestsPerInterval, interval); }
public static void SetRateLimitClassroomService(int requestsPerInterval, TimeSpan interval) { RateLimiter.SetRateLimit(new ClassroomService().Name, requestsPerInterval, interval); }
public static void SetRateLimitDirectoryService(int requestsPerInterval, TimeSpan interval) { RateLimiter.SetRateLimit(new DirectoryService().Name, requestsPerInterval, interval); }
public static void SetRateLimitGroupSettingsService(int requestsPerInterval, TimeSpan interval) { RateLimiter.SetRateLimit(new GroupssettingsService().Name, requestsPerInterval, interval); }
private void ReleaseGate() { RateLimiter.ReleaseGate(CourseTeacherRequestFactory.limiterName); }
private void WaitForGate() { RateLimiter.WaitForGate(CourseTeacherRequestFactory.limiterName); }
private void ReleaseGate() { RateLimiter.ReleaseGate(GroupMemberRequestFactory.limiterName); }
private void WaitForGate() { RateLimiter.WaitForGate(GroupMemberRequestFactory.limiterName); }
internal GroupMemberRequestFactory(BaseClientServicePool <DirectoryService> directoryServicePool) { this.directoryServicePool = directoryServicePool; RateLimiter.SetConcurrentLimit(GroupMemberRequestFactory.limiterName, GroupMemberRequestFactory.ConcurrentOperationLimitDefault); }