Exemple #1
0
 // Token: 0x0600014C RID: 332 RVA: 0x0000661C File Offset: 0x0000481C
 internal DatabaseInfo(Guid guid, string databaseName, string databaseLegacyDN, bool isPublic, EventLogger eventLogger, bool zeroBox = true)
 {
     if (zeroBox)
     {
         this.guid = guid;
         this.systemMailboxName = "SystemMailbox{" + this.guid + "}";
         this.databaseName      = databaseName;
         this.isPublic          = isPublic;
         this.displayName       = string.Concat(new object[]
         {
             this.databaseName,
             " (",
             this.guid,
             ")"
         });
         if (!this.isPublic)
         {
             Guid empty = Guid.Empty;
             this.systemAttendantMailboxGuid    = Guid.Empty;
             this.systemAttendantMailboxPresent = (this.guid == empty);
         }
     }
     else
     {
         this.Initialize(guid, databaseName, databaseLegacyDN, isPublic);
     }
     SingletonEventLogger.GetSingleton(eventLogger.ServiceName);
 }
Exemple #2
0
 // Token: 0x0600017F RID: 383 RVA: 0x00007464 File Offset: 0x00005664
 public DatabaseManager(string serviceName, int maxThreads, IEventBasedAssistantType[] eventBasedAssistantTypeArray, ITimeBasedAssistantType[] timeBasedAssistantTypeArray, bool provideRpc)
 {
     SingletonEventLogger.GetSingleton(serviceName);
     if (eventBasedAssistantTypeArray == null && timeBasedAssistantTypeArray == null)
     {
         throw new ArgumentNullException("eventBasedAssistantTypeArray and timeBasedAssistantTypeArray cannot be both null");
     }
     this.serviceName = serviceName;
     Configuration.Initialize(serviceName);
     if (eventBasedAssistantTypeArray != null)
     {
         PerformanceCountersPerAssistantInstance performanceCountersPerAssistantsTotal = new PerformanceCountersPerAssistantInstance(this.serviceName + "-Total", null);
         this.assistantTypes = AssistantType.CreateArray(eventBasedAssistantTypeArray, performanceCountersPerAssistantsTotal);
     }
     this.poisonControlMaster = new PoisonControlMaster(Configuration.ServiceRegistryKeyPath);
     this.throttle            = Throttle.CreateParentThrottle("DatabaseManager", maxThreads);
     if (timeBasedAssistantTypeArray != null)
     {
         SystemWorkloadManager.Initialize(AssistantsLog.Instance);
         this.timeBasedDriverManager = new TimeBasedDriverManager(this.throttle, timeBasedAssistantTypeArray, provideRpc);
     }
     this.eventGovernor = new ServerGovernor("DatabaseManagerEvent", new Throttle("DatabaseManagerEvent", maxThreads, this.throttle));
     this.starter       = new Starter(new Init(this.Init));
     OnlineDiagnostics.Instance.RegisterDatabaseManager(this);
     base.TracePfd("PFD AIS {0} Database manager: Inialized for Service {1}", new object[]
     {
         30103,
         this.serviceName
     });
 }