public UnconfirmedSourceSuspensionService(IApiGateway apiGateway, SuspensionsHubSignalRClient suspensionsHub) { this.apiGateway = apiGateway; this.suspensionsHub = suspensionsHub; //suspensionsHub.OnNewSuspension += async (sender, args) => await SuspensionsHub_OnNewSuspension(sender, args); suspensionsHub.OnSuspensionUpdated += async(sender, args) => await SuspensionsHub_SuspensionUpdated(sender, args); }
public ApiGateway(IConfiguration iConfig) { configuration = iConfig; _api = RestService.For <IApiGateway>(new HttpClient(new AuthenticatedHttpClientHandler(GetToken)) { BaseAddress = new Uri(GetUrl()), Timeout = TimeSpan.FromSeconds(180) }); }
public ChannelStatisticsService(IApiGateway apiGateway, IUserService userService, SuspensionsHubSignalRClient suspensionsHubSignalRClient) { this.apiGateway = apiGateway; this.userService = userService; this.suspensionsHubSignalRClient = suspensionsHubSignalRClient; suspensionsHubSignalRClient.OnNewSuspension += async(sender, args) => await SuspensionsHubSignalRClient_OnNewSuspension(sender, args).ConfigureAwait(false); suspensionsHubSignalRClient.OnSuspensionUpdated += async(sender, args) => await SuspensionsHubSignalRClient_OnSuspensionUpdated(sender, args).ConfigureAwait(false); }
public void Setup() { _getRequestHandler = A.Fake <IGetRequestHandler>(); _modelBuilder = A.Fake <IBidViewModelBuilder>(); _putRequestHandler = A.Fake <IPutRequestHandler>(); _postRequestHandler = A.Fake <IPostRequestHandler>(); _deleteHandler = A.Fake <IDeleteHandler>(); _ApiGateway = new ApiGateway(_getRequestHandler, _modelBuilder, _putRequestHandler, _postRequestHandler, _deleteHandler); }
public SuspensionService(IApiGateway apiGateway, IUserService userService, IJSRuntime jSRuntime, SuspensionsHubSignalRClient suspensionsHub) { this.apiGateway = apiGateway; this.userService = userService; this.suspensionsHub = suspensionsHub; suspensionsHub.OnNewSuspension += async(sender, args) => await SuspensionsHub_OnNewSuspension(sender, args); suspensionsHub.OnSuspensionUpdated += async(sender, args) => await SuspensionsHub_SuspensionUpdated(sender, args); this.jSRuntime = jSRuntime; }
public UserChannelService(IApiGateway apiGateway, IUserService userService, IJSRuntime jSRuntime, ChannelsHubSignalRClient channelsHubSignalRClient) { this.apiGateway = apiGateway; this.userService = userService; this.jSRuntime = jSRuntime; this.channelsHubSignalRClient = channelsHubSignalRClient; channelsHubSignalRClient.ChannelJoined += async(sender, args) => await ChannelsHubSignalRClient_ChannelJoined(sender, args).ConfigureAwait(false); channelsHubSignalRClient.ChannelLeft += ChannelsHubSignalRClient_ChannelLeft; channelsHubSignalRClient.AutoModListenerEnabled += ChannelsHubSignalRClient_AutoModListenerEnabled; channelsHubSignalRClient.AutoModListenerDisabled += ChannelsHubSignalRClient_AutoModListenerDisabled; }
public ServiceExampleTests() { // NOTE: put your Aplos client *.key file in the root folder of the github repository var filePath = Directory.GetCurrentDirectory(); filePath = Path.Combine(filePath.Substring(0, filePath.IndexOf("aplos-api-csharp")), "aplos-api-csharp"); var keyFile = Directory.GetFiles(filePath, "*.key").First(); var gatewayFactory = new ApiGatewayFactory(cfg => { cfg.LoadPrivateKeyFromFile(keyFile); }); _gateway = gatewayFactory.BuildGateway(); }
public TransactionServiceTests() { //Inicializa o Gateway da API de testes. //Inicializa o gateway da API de produção _productionApiGateway = new ApiGateway(new ApiConfig(ClientPaymentsUrl, ClientReceivedPaymentsUrl)); _productionTransactionService = new TransactionService(new List <ITransactionReader> { new TransactionApiReader(_productionApiGateway), new TransactionLogReader(TransactionsLogPath) }); }
public UserService( IApiGateway apiGateway, IApplicationStateManager applicationStateManager, ChannelsHubSignalRClient channelsHubSignalRClient, SuspensionsHubSignalRClient suspensionsHubSignalRClient, NotificationHubSignalRClient notificationHubSignalRClient, IJSRuntime jSRuntime) { this.apiGateway = apiGateway; this.applicationStateManager = applicationStateManager; this.channelsHubSignalRClient = channelsHubSignalRClient; this.suspensionsHubSignalRClient = suspensionsHubSignalRClient; this.notificationHubSignalRClient = notificationHubSignalRClient; this.jSRuntime = jSRuntime; notificationHubSignalRClient.NotificationReceived += NotificationHubSignalRClient_NotificationReceived; }
public TenureInformationGateway(IApiGateway apiGateway, ILogger <TenureInformationGateway> logger) { _apiGateway = apiGateway; _logger = logger; }
public UserReportService(IApiGateway apiGateway) { this.apiGateway = apiGateway; }
public HousingSearchGateway(IApiGateway apiGateway, ILogger <HousingSearchGateway> logger) { _apiGateway = apiGateway; _logger = logger; }
public TagService(IApiGateway apiGateway, IUserService userService) { this.apiGateway = apiGateway; this.userService = userService; }
public PropertyGateway(IApiGateway apiGateway, ILogger <PropertyGateway> logger) { _apiGateway = apiGateway; _logger = logger; }
public PurposesService(IApiGateway gateway) { _gateway = gateway; }
public SystemReportService(IApiGateway apiGateway) { this.apiGateway = apiGateway; }
public AccountsService(IApiGateway gateway) { _gateway = gateway; }
public FundsService(IApiGateway gateway) { _gateway = gateway; }
public TransactionApiReader(IApiGateway gateway) { _gateway = gateway; }
public MobbexService(IApiGateway apiGateway, IMobbexOptions mobbexOptions) { _apiGateway = apiGateway; _mobbexOptions = mobbexOptions; }
public AlertsGateway(IApiGateway apiGateway, ILogger <AlertsGateway> logger) { _logger = logger; _apiGateway = apiGateway; }
public ResidentContactGateway(IApiGateway apiGateway, ILogger <ResidentContactGateway> logger) { _apiGateway = apiGateway; _logger = logger; }
public AssetGateway(IApiGateway apiGateway, ILogger <AssetGateway> logger) { _apiGateway = apiGateway; _logger = logger; }
public ContactDetailsGateway(IApiGateway apiGateway, ILogger <ContactDetailsGateway> logger) { _apiGateway = apiGateway; _logger = logger; }
public ContactsService(IApiGateway gateway) { _gateway = gateway; }