Exemplo n.º 1
0
 /// <summary>
 /// Gets the <see cref="IService{T}"/> service proxy if it is available (it may be stopped but null will be returned
 /// if it is disabled).
 /// </summary>
 /// <typeparam name="T">Type of the service (interface marked with <see cref="IDynamicService"/>)</typeparam>
 /// <returns>The service or null if not available (disabled).</returns>
 public static IService <T> GetProxy <T>(this IServiceHost host) where T : IDynamicService
 {
     return((IService <T>)host.GetProxy(typeof(T)));
 }