private static void AddServices(IWixToolsetCoreServiceProvider coreProvider) { // Singletons. coreProvider.AddService((provider, singletons) => AddSingleton <IInternalBurnBackendHelper>(singletons, new BurnBackendHelper(provider))); coreProvider.AddService((provider, singletons) => AddSingleton <IPayloadHarvester>(singletons, new PayloadHarvester())); coreProvider.AddService((provider, singletons) => AddSingleton <IBurnBackendHelper>(singletons, provider.GetService <IInternalBurnBackendHelper>())); }
/// <summary> /// Adds ExtensionCache services. /// </summary> /// <param name="coreProvider"></param> /// <returns></returns> public static IWixToolsetCoreServiceProvider AddExtensionCacheManager(this IWixToolsetCoreServiceProvider coreProvider) { var extensionManager = coreProvider.GetService <IExtensionManager>(); extensionManager.Add(typeof(ExtensionCacheManagerExtensionFactory).Assembly); coreProvider.AddService(CreateExtensionCacheManager); return(coreProvider); }
private static void AddServices(IWixToolsetCoreServiceProvider coreProvider) { // Singletons. coreProvider.AddService((provider, singletons) => AddSingleton <IWindowsInstallerBackendHelper>(singletons, new WindowsInstallerBackendHelper())); coreProvider.AddService <IUnbinder>((provider, singletons) => new Unbinder(provider)); }