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