/// <inheritdoc /> public void Resolve(IExtensionPoint <IComplexExtension> extensionPoint) { Ensure.ArgumentNotNull(extensionPoint, "extensionPoint"); extensionPoint.AddExtension(new Log4NetExtension()); extensionPoint.AddExtension(new ExtensionWhichRegistersSomething()); }
/// <summary> /// 添加扩展 /// </summary> /// <param name="point"></param> public void AddExtension(IExtension item) { lock (lockObj) { if (item == null) { return; } string key = item.Point.ToLower(); if (extensionPointsByName.Contains(key)) { IExtensionPoint extensionPoint = extensionPointsByName[key] as IExtensionPoint; extensionPoint.AddExtension(item); extensions.Add(item); } } }
/// <inheritdoc /> public void Resolve(IExtensionPoint <IComplexExtension> extensionPoint) { Ensure.ArgumentNotNull(extensionPoint, "extensionPoint"); extensionPoint.AddExtension(new ExtensionWhichNeedsDependency()); extensionPoint.AddExtension(new ExtensionWhichIsFunqlet()); extensionPoint.AddExtension(new ExtensionWithExtensionConfigurationSection()); extensionPoint.AddExtension( new ExtensionWithExtensionConfigurationSectionWithConversionAndCustomizedLoading()); extensionPoint.AddExtension(new ExtensionWithExtensionConfigurationSectionWithDictionary()); extensionPoint.AddExtension(new ExtensionWithCustomConfigurationSection()); }
public void Resolve(IExtensionPoint <ISensor> extensionPoint) { extensionPoint.AddExtension(this.resolutionRoot.Get <IDoorSensor>()); extensionPoint.AddExtension(this.resolutionRoot.Get <ISerotoninSensor>()); extensionPoint.AddExtension(this.resolutionRoot.Get <IBlackHoleSensor>()); }