Ejemplo n.º 1
0
 public DefaultRaygunClient(IRaygunMessageBuilder messageBuilder, IEnumerable <IRaygunValidator> validators, IOptions <RaygunOptions> options)
 {
     _messageBuilder = messageBuilder ?? throw new ArgumentNullException(nameof(messageBuilder));
     _validators     = validators;
     _options        = options.Value;
     _client         = CreateClient();
 }
Ejemplo n.º 2
0
 public DefaultRaygunClient(
     IHttpClientFactory clientFactory,
     IRaygunMessageBuilder messageBuilder,
     IEnumerable <IRaygunValidator> validators,
     IOptions <RaygunOptions> options)
 {
     _clientFactory  = clientFactory ?? throw new ArgumentNullException(nameof(clientFactory));
     _messageBuilder = messageBuilder ?? throw new ArgumentNullException(nameof(messageBuilder));
     _validators     = validators ?? throw new ArgumentNullException(nameof(validators));;
     _options        = options.Value;
 }
Ejemplo n.º 3
0
 public MainMessageProvider(IOptions <RaygunOptions> options)
 {
     _options = options.Value;
 }
Ejemplo n.º 4
0
 public LocalValidator(IHttpContextAccessor httpContextAccessor, IOptions <RaygunOptions> options)
 {
     _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     _options             = options.Value;
 }
 public RequestMessageProvider(IHttpContextAccessor httpContextAccessor, IOptions <RaygunOptions> options)
 {
     _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     _options             = options.Value;
 }