// 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: 0x06001364 RID: 4964 RVA: 0x000713D8 File Offset: 0x0006F5D8 public TruncatedLinkOABProperty(PropTag propTag, OABPropertyFlags propFlags) : base(propTag, propFlags) { this.linkProperty = NspiPropMapper.GetPropertyDefinition(this.propTag); string text = this.linkProperty.Name + "-Placeholder"; this.placeholderProperty = new ADPropertyDefinition(text, ExchangeObjectVersion.Exchange2003, typeof(bool), text, ADPropertyDefinitionFlags.None, false, PropertyDefinitionConstraint.None, PropertyDefinitionConstraint.None, null, null); }
// Token: 0x060002E5 RID: 741 RVA: 0x000120AC File Offset: 0x000102AC private static PropertyDefinition PropTagToPropertyDefinition(PropTag tag) { PropertyDefinition propertyDefinition = NspiPropMapper.GetPropertyDefinition(tag); if (propertyDefinition == null) { throw new NspiException(NspiStatus.TooComplex, "Unknown proptag"); } return(propertyDefinition); }
// 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"); } } } }
// Token: 0x06001368 RID: 4968 RVA: 0x000714ED File Offset: 0x0006F6ED public HABGroupMemberOABProperty(PropTag propTag, OABPropertyFlags propFlags) : base(propTag, propFlags) { this.isOrganizationalProperty = NspiPropMapper.GetPropertyDefinition((PropTag)2363293707U); }
// Token: 0x0600135D RID: 4957 RVA: 0x00070D87 File Offset: 0x0006EF87 public MultivaluedProperty(PropTag propTag, OABPropertyFlags propFlags) : base(propTag, propFlags) { this.propertyDefinition = NspiPropMapper.GetPropertyDefinition(this.propTag); }
// Token: 0x0600134B RID: 4939 RVA: 0x00070834 File Offset: 0x0006EA34 public static OABProperty[] CreateOABPropertyList(Dictionary <PropTag, OABPropertyFlags> rawPropertyList) { OABProperty.Tracer.TraceFunction(0L, "OABProperty.CreateOABPropertyList"); if (rawPropertyList.ContainsKey((PropTag)2363293707U)) { OABProperty.Tracer.TraceDebug(0L, "HAB is enabled"); if (!rawPropertyList.ContainsKey((PropTag)2148077598U)) { rawPropertyList[(PropTag)2148077598U] = OABPropertyFlags.Truncated; } if (!rawPropertyList.ContainsKey((PropTag)2148012062U)) { rawPropertyList[(PropTag)2148012062U] = OABPropertyFlags.Truncated; } } rawPropertyList.Remove(OABFilePropTags.TruncatedProperties); List <OABProperty> list = new List <OABProperty>(rawPropertyList.Count + 1); foreach (KeyValuePair <PropTag, OABPropertyFlags> keyValuePair in rawPropertyList) { PropTag key = keyValuePair.Key; OABPropertyFlags value = keyValuePair.Value; OABProperty.Tracer.TraceDebug <PropTag>(0L, "Adding PropTag {0}...", key); if (key == (PropTag)2355953922U) { OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating ObjectGuidOABProperty for PropTag {0}...", key); list.Add(new OABProperty.ObjectGuidOABProperty(key, value)); } else if ((value & OABPropertyFlags.Truncated) != OABPropertyFlags.None) { if (key == (PropTag)2148077598U || key == (PropTag)2148012062U) { OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating HABGroupMemberOABProperty for PropTag {0}...", key); list.Add(new OABProperty.HABGroupMemberOABProperty(key, value)); } else { PropertyDefinition propertyDefinition = NspiPropMapper.GetPropertyDefinition(key); if (propertyDefinition != null && propertyDefinition.Type == typeof(ADObjectId)) { OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating TruncatedLinkOABProperty for PropTag {0}...", key); list.Add(new OABProperty.TruncatedLinkOABProperty(key, value)); } else { OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating TruncatedOABProperty for PropTag {0}...", key); list.Add(new OABProperty.TruncatedOABProperty(key, value)); } } } else if (key == (PropTag)2355761410U) { OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating X509CertificateProperty for PropTag {0}...", key); list.Add(new OABProperty.X509CertificateProperty(key, value)); } else if (key.IsMultiValued()) { OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating MultivaluedProperty for PropTag {0}...", key); list.Add(new OABProperty.MultivaluedProperty(key, value)); } else { OABProperty.Tracer.TraceDebug <PropTag>(0L, "Instantiating OABProperty for PropTag {0}...", key); list.Add(new OABProperty(key, value)); } } list.Add(new OABProperty.TruncatedPropertiesOABProperty(OABFilePropTags.TruncatedProperties, OABPropertyFlags.None)); return(list.ToArray()); }