public PutAssetHandler(IOptions <ServiceNowOptions> options, IMapper mapper, IMediator mediator)
 {
     _options  = options.Value;
     _mapper   = mapper;
     _mediator = mediator;
 }
 public GetLocationsHandler(IOptions <ServiceNowOptions> options, IMapper mapper, IMemoryCache cache)
 {
     _options = options.Value;
     _mapper  = mapper;
     _cache   = cache;
 }
Exemplo n.º 3
0
 public GetAssetsHandler(IOptions <ServiceNowOptions> options, IMapper mapper)
 {
     _options = options.Value;
     _mapper  = mapper;
 }
Exemplo n.º 4
0
 public GetAssetHandler(IOptions <ServiceNowOptions> options, IMediator mediator)
 {
     _options  = options.Value;
     _mediator = mediator;
 }
 public static string BuildAuthHeader(this ServiceNowOptions options)
 {
     return(Convert.ToBase64String(System.Text.Encoding.GetEncoding("ISO-8859-1")
                                   .GetBytes($"{options.ServiceNowUser}:{options.ServiceNowSecret}")));
 }