Ejemplo n.º 1
0
 public static ILoggerFactory AddHubLogger(this ILoggerFactory factory,
                                           DataLoggerHub hub,
                                           Func <string, LogLevel, bool> filter = null)
 {
     factory.AddProvider(new HubLoggerProvider(filter, hub));
     return(factory);
 }
Ejemplo n.º 2
0
 public HubLoggerProvider(Func <string, LogLevel, bool> filter, DataLoggerHub hub)
 {
     _filter  = filter;
     this.hub = hub;
 }
Ejemplo n.º 3
0
 public HubLogger(string categoryName, Func <string, LogLevel, bool> filter, DataLoggerHub hub)
 {
     _filter       = filter;
     this.hub      = hub;
     _categoryName = categoryName;
 }
Ejemplo n.º 4
0
 public DataLoggerController(DataLoggerHub dataLoggerHub, ICgmTask cgmTask)
 {
     this.dataLoggerHub     = dataLoggerHub;
     CgmTask                = cgmTask;
     cgmTask.StatusChanged += CgmTask_StatusChanged;
 }