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; }
public GetAssetsHandler(IOptions <ServiceNowOptions> options, IMapper mapper) { _options = options.Value; _mapper = mapper; }
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}"))); }