Ejemplo n.º 1
0
 /// <summary>
 /// Gets the <see cref="IService{T}"/> service proxy if it is available and starting, stopping or running (null will be returned
 /// if it is stopped or 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 or stopped).</returns>
 public static IService <T> GetRunningProxy <T>(this IServiceHost host) where T : IDynamicService
 {
     return((IService <T>)host.GetRunningProxy(typeof(T)));
 }