public MembershipSyncJobQueue(TeamMailboxSyncConfiguration config, ITeamMailboxSecurityRefresher teamMailboxSecurityRefresher, IResourceMonitorFactory resourceMonitorFactory, IOAuthCredentialFactory oauthCredentialFactory, bool createTeamMailboxSyncInfoCache = true) : base(QueueType.TeamMailboxMembershipSync, "TeamMailboxMembershipLastSyncCycleLog", config, resourceMonitorFactory, oauthCredentialFactory, createTeamMailboxSyncInfoCache)
 {
     if (teamMailboxSecurityRefresher == null)
     {
         throw new ArgumentNullException("teamMailboxSecurityRefresher");
     }
     this.teamMailboxSecurityRefresher = teamMailboxSecurityRefresher;
 }
 public MembershipSyncJob(JobQueue queue, Configuration config, ITeamMailboxSecurityRefresher teamMailboxSecurityRefresher, TeamMailboxSyncInfo syncInfoEntry, string clientString, SyncOption syncOption) : base(queue, config, syncInfoEntry, clientString, syncOption)
 {
     if (teamMailboxSecurityRefresher == null)
     {
         throw new ArgumentNullException("teamMailboxSecurityRefresher");
     }
     this.teamMailboxSecurityRefresher = teamMailboxSecurityRefresher;
     this.loggingComponent             = ProtocolLog.Component.MembershipSync;
 }
示例#3
0
 public MembershipSynchronizer(TeamMailboxSyncJob job, MailboxSession mailboxSession, OrganizationId orgId, ITeamMailboxSecurityRefresher teamMailboxSecurityRefresher, IResourceMonitor resourceMonitor, string siteUrl, ICredentials credential, bool isOAuthCredential, bool enableHttpDebugProxy, Stream syncCycleLogStream) : base(job, mailboxSession, resourceMonitor, siteUrl, credential, isOAuthCredential, enableHttpDebugProxy, syncCycleLogStream)
 {
     if (teamMailboxSecurityRefresher == null)
     {
         throw new ArgumentNullException("teamMailboxSecurityRefresher");
     }
     if (orgId == null)
     {
         throw new ArgumentNullException("orgId");
     }
     this.orgId = orgId;
     this.teamMailboxSecurityRefresher = teamMailboxSecurityRefresher;
     this.workLoadSize     = 20;
     this.loggingComponent = ProtocolLog.Component.MembershipSync;
 }