public RabbitMQService(IAIService aIService, IServiceScopeFactory scopeFactory, ILogger <RabbitMQService> logger, IAuthAPIClient authAPIClient, ServiceAuthConfig serviceAuthConfig, RabbitMQSettings rabbitMQSettings) { this.scopeFactory = scopeFactory; this.aIService = aIService; factory = new ConnectionFactory() { HostName = rabbitMQSettings.Host }; this.logger = logger; this.authAPIClient = authAPIClient; this.serviceAuthConfig = serviceAuthConfig; this.rabbitMQSettings = rabbitMQSettings; }
public ApplicationAPIClient(string baseUrl, HttpClient httpClient, IHttpContextAccessor httpContextAccessor, IBaseTokenService tokenService, IAuthAPIClient authBaseAPI) : base(httpContextAccessor, tokenService) { this._baseUrl = baseUrl; this._httpClient = httpClient; this.AuthAPIClient = authBaseAPI; _settings = new System.Lazy <Newtonsoft.Json.JsonSerializerSettings>(CreateSerializerSettings); _settings.Value.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore; }