diff options
Diffstat (limited to 'src/WixToolset.Extensibility/Services/IWixToolsetServiceProvider.cs')
-rw-r--r-- | src/WixToolset.Extensibility/Services/IWixToolsetServiceProvider.cs | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/WixToolset.Extensibility/Services/IWixToolsetServiceProvider.cs b/src/WixToolset.Extensibility/Services/IWixToolsetServiceProvider.cs index c9ef36e1..0315f7ed 100644 --- a/src/WixToolset.Extensibility/Services/IWixToolsetServiceProvider.cs +++ b/src/WixToolset.Extensibility/Services/IWixToolsetServiceProvider.cs | |||
@@ -4,10 +4,31 @@ namespace WixToolset.Extensibility.Services | |||
4 | { | 4 | { |
5 | using System; | 5 | using System; |
6 | 6 | ||
7 | /// <summary> | ||
8 | /// Service provider. | ||
9 | /// </summary> | ||
7 | public interface IWixToolsetServiceProvider : IServiceProvider | 10 | public interface IWixToolsetServiceProvider : IServiceProvider |
8 | { | 11 | { |
12 | /// <summary> | ||
13 | /// Gets a service from the service provider. | ||
14 | /// </summary> | ||
15 | /// <typeparam name="T">Type of service to get.</typeparam> | ||
16 | T GetService<T>() where T : class; | ||
17 | |||
18 | /// <summary> | ||
19 | /// Gets a service from the service provider. | ||
20 | /// </summary> | ||
21 | /// <param name="serviceType">Type of service to get.</param> | ||
22 | /// <param name="service">Retrieved service.</param> | ||
23 | /// <returns>True if the service was found, otherwise false</returns> | ||
9 | bool TryGetService(Type serviceType, out object service); | 24 | bool TryGetService(Type serviceType, out object service); |
25 | |||
26 | /// <summary> | ||
27 | /// Gets a service from the service provider. | ||
28 | /// </summary> | ||
29 | /// <typeparam name="T">Type of service to get.</typeparam> | ||
30 | /// <param name="service">Retrieved service.</param> | ||
31 | /// <returns>True if the service was found, otherwise false</returns> | ||
10 | bool TryGetService<T>(out T service) where T : class; | 32 | bool TryGetService<T>(out T service) where T : class; |
11 | T GetService<T>() where T : class; | ||
12 | } | 33 | } |
13 | } | 34 | } |