Exemple #1
0
 private void ReleaseGate()
 {
     RateLimiter.ReleaseGate(CourseStudentRequestFactory.limiterName);
 }
Exemple #2
0
 internal CourseStudentRequestFactory(BaseClientServicePool <ClassroomService> classroomServicePool)
 {
     this.classRoomServicePool = classroomServicePool;
     RateLimiter.SetConcurrentLimit(CourseStudentRequestFactory.limiterName, CourseStudentRequestFactory.ConcurrentOperationLimitDefault);
 }
Exemple #3
0
 private void WaitForGate()
 {
     RateLimiter.WaitForGate(CourseStudentRequestFactory.limiterName);
 }
Exemple #4
0
 public static void SetRateLimitContactsService(int requestsPerInterval, TimeSpan interval)
 {
     RateLimiter.SetRateLimit(typeof(ContactsService).Name, requestsPerInterval, interval);
 }
Exemple #5
0
 public static void SetRateLimitClassroomService(int requestsPerInterval, TimeSpan interval)
 {
     RateLimiter.SetRateLimit(new ClassroomService().Name, requestsPerInterval, interval);
 }
Exemple #6
0
 public static void SetRateLimitDirectoryService(int requestsPerInterval, TimeSpan interval)
 {
     RateLimiter.SetRateLimit(new DirectoryService().Name, requestsPerInterval, interval);
 }
Exemple #7
0
 public static void SetRateLimitGroupSettingsService(int requestsPerInterval, TimeSpan interval)
 {
     RateLimiter.SetRateLimit(new GroupssettingsService().Name, requestsPerInterval, interval);
 }
Exemple #8
0
 private void ReleaseGate()
 {
     RateLimiter.ReleaseGate(CourseTeacherRequestFactory.limiterName);
 }
Exemple #9
0
 private void WaitForGate()
 {
     RateLimiter.WaitForGate(CourseTeacherRequestFactory.limiterName);
 }
Exemple #10
0
 private void ReleaseGate()
 {
     RateLimiter.ReleaseGate(GroupMemberRequestFactory.limiterName);
 }
Exemple #11
0
 private void WaitForGate()
 {
     RateLimiter.WaitForGate(GroupMemberRequestFactory.limiterName);
 }
Exemple #12
0
 internal GroupMemberRequestFactory(BaseClientServicePool <DirectoryService> directoryServicePool)
 {
     this.directoryServicePool = directoryServicePool;
     RateLimiter.SetConcurrentLimit(GroupMemberRequestFactory.limiterName, GroupMemberRequestFactory.ConcurrentOperationLimitDefault);
 }