Ejemplo n.º 1
0
        public ExceptionMiddleware(IConfiguration iConfiguration, ILogger <Program> logger, RequestDelegate next, IBaseApiConsumer iBaseApiConsumer)
        {
            _logger           = logger;
            _next             = next;
            _iBaseApiConsumer = iBaseApiConsumer;
            var errorLoggergUrl = iConfiguration.GetSection("ErrorLoggergUrl").Get <string>();

            _iBaseApiConsumer.SetUrl(errorLoggergUrl);
        }
 public BusinessUsers(IBaseApiConsumer iBaseApiConsumer, IBusinessApiAuthentication iBusinessApiAuthentication, string url)
 {
     _iBaseApiConsumer           = iBaseApiConsumer;
     _iBusinessApiAuthentication = iBusinessApiAuthentication;
     _iBaseApiConsumer.SetUrl(url);
 }
 public BusinessApiAuthentication(IBaseApiConsumer iBaseApiConsumer, InternalApiCredential internalApiCredential)
 {
     _iBaseApiConsumer      = iBaseApiConsumer;
     _internalApiCredential = internalApiCredential;
     _iBaseApiConsumer.SetUrl(_internalApiCredential.Url);
 }