/// <summary>
 /// Loads from configuration.
 /// </summary>
 /// <param name="service">The service.</param>
 /// <param name="configuration">The configuration.</param>
 /// <returns></returns>
 public static Lazy <IEventSource> LoadFromConfiguration(this Lazy <IEventSource> service, EventSourceConfiguration configuration)
 {
     EventSourceManager.GetSetupDescriptor(service).LoadFromConfiguration(service, configuration); return(service);
 }
Exemplo n.º 2
0
 static EventSource()
 {
     EventSourceManager.EnsureRegistration();
 }