Beispiel #1
0
 /// <summary>
 /// Create a new instance of the logger. You typically don't want to call this constructor but rather call the AddElmahIo method.
 /// </summary>
 public ElmahIoLogger(HttpClient httpClient, ElmahIoBlazorOptions options)
 {
     this.httpClient = httpClient;
     this.options    = options;
 }
Beispiel #2
0
 /// <summary>
 /// Create a new instance using the provided HTTP client and options.
 /// </summary>
 public ElmahIoLoggerProvider(HttpClient httpClient, IOptions <ElmahIoBlazorOptions> options)
 {
     this.httpClient = httpClient;
     this.options    = options.Value;
 }