aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Extensibility/Services/IWixtoolsetCoreServiceProvider.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Extensibility/Services/IWixtoolsetCoreServiceProvider.cs')
-rw-r--r--src/WixToolset.Extensibility/Services/IWixtoolsetCoreServiceProvider.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/WixToolset.Extensibility/Services/IWixtoolsetCoreServiceProvider.cs b/src/WixToolset.Extensibility/Services/IWixtoolsetCoreServiceProvider.cs
index cda725f7..3c80ddef 100644
--- a/src/WixToolset.Extensibility/Services/IWixtoolsetCoreServiceProvider.cs
+++ b/src/WixToolset.Extensibility/Services/IWixtoolsetCoreServiceProvider.cs
@@ -5,9 +5,31 @@ namespace WixToolset.Extensibility.Services
5 using System; 5 using System;
6 using System.Collections.Generic; 6 using System.Collections.Generic;
7 7
8 /// <summary>
9 /// The core of the service provider used to add services to the service provider.
10 /// </summary>
8 public interface IWixToolsetCoreServiceProvider : IWixToolsetServiceProvider 11 public interface IWixToolsetCoreServiceProvider : IWixToolsetServiceProvider
9 { 12 {
13 /// <summary>
14 /// Adds a service to the service locator.
15 /// </summary>
16 /// <param name="serviceType">Type of the service to add.</param>
17 /// <param name="creationFunction">
18 /// A function that creates the service. The create function is provided the service provider
19 /// itself to resolve additional services and a type dictionary that stores singleton services
20 /// the creation function can add its service to.
21 /// </param>
10 void AddService(Type serviceType, Func<IWixToolsetCoreServiceProvider, Dictionary<Type, object>, object> creationFunction); 22 void AddService(Type serviceType, Func<IWixToolsetCoreServiceProvider, Dictionary<Type, object>, object> creationFunction);
23
24 /// <summary>
25 /// Adds a service to the service locator.
26 /// </summary>
27 /// <param name="serviceType">Type of the service to add.</param>
28 /// <param name="creationFunction">
29 /// A function that creates the service. The create function is provided the service provider
30 /// itself to resolve additional services and a type dictionary that stores singleton services
31 /// the creation function can add its service to.
32 /// </param>
11 void AddService<T>(Func<IWixToolsetCoreServiceProvider, Dictionary<Type, object>, T> creationFunction) where T : class; 33 void AddService<T>(Func<IWixToolsetCoreServiceProvider, Dictionary<Type, object>, T> creationFunction) where T : class;
12 } 34 }
13} 35}