// Token: 0x06000009 RID: 9 RVA: 0x0000215C File Offset: 0x0000035C public void OnStartBegin() { this.isStarted = true; Configuration.Initialize(this.eventLog, new Action(this.serviceManager.StopService)); if (!Configuration.ServiceEnabled) { AddressBookService.GeneralTracer.TraceDebug(0L, "The service is not enabled."); return; } AddressBookService.InitializePerfCounters(new AddressBookPerformanceCounters()); NspiPropMapper.Initialize(); this.RegisterServicePrincipalNames(); ADSession.DisableAdminTopologyMode(); this.serviceManager.AddHttpPort(6001.ToString()); NspiServer.Initialize(this.serviceManager, this.eventLog); RfriServer.Initialize(this.serviceManager, this.eventLog); if (Configuration.ProtocolLoggingEnabled) { if (string.IsNullOrEmpty(Configuration.LogFilePath)) { this.eventLog.LogEvent(AddressBookEventLogConstants.Tuple_BadConfigParameter, "LogFilePath", new object[] { Configuration.LogFilePath }); return; } ProtocolLog.Initialize(ExDateTime.UtcNow, Configuration.LogFilePath, TimeSpan.FromHours((double)Configuration.MaxRetentionPeriod), Configuration.MaxDirectorySize, Configuration.PerFileMaxSize, Configuration.ApplyHourPrecision); } }
// Token: 0x06001376 RID: 4982 RVA: 0x00071928 File Offset: 0x0006FB28 private static void InitializeNspiPropMapper() { if (!PropertyManager.nspiPropMapperInitialized) { lock (PropertyManager.nspiPropMapperInitializeLocker) { if (!PropertyManager.nspiPropMapperInitialized) { PropertyManager.Tracer.TraceDebug(0L, "PropertyManager.InitializeNspiPropMapper: initializing NspiPropMapper"); NspiPropMapper.Initialize(); PropertyManager.nspiPropMapperInitialized = true; PropertyManager.Tracer.TraceDebug(0L, "PropertyManager.InitializeNspiPropMapper: NspiPropMapper initialized successfully"); } } } }