public RabbitMQHttpApiSettings(MatchingEngineSettings config) { Hostname = config.RabbitMQHost; Port = config.RabbitMQPort; Username = config.RabbitMQUsername; Password = config.RabbitMQPassword; Node = config.RabbitMQNode; }
public RabbitMQSettings(MatchingEngineSettings config, string sourceEndpoint, string endpoint) { Hostname = config.RabbitMQHost; Port = config.RabbitMQamqpPort; Username = config.RabbitMQUsername; Password = config.RabbitMQPassword; SourceEndpoint = sourceEndpoint; Endpoint = endpoint; }
public JobModule( AssetsSettings assetsSettings, ChaosSettings chaosSettings, MatchingEngineSettings matchingEngineSettings) { _assetsSettings = assetsSettings; _chaosSettings = chaosSettings; _meSettings = matchingEngineSettings; }
public void Initialize() { _configBuilder = new ConfigBuilder().ReloadingManager; _matchingEngineSettings = _configBuilder.CurrentValue.AutomatedFunctionalTests.MatchingEngine; prepareConsumer(); prepareRabbitQueues(); prepareRabbitMQConnections(); prepareDependencyContainer(); prepareTestData().Wait(); }
public static async Task FillWalletWithAsset(string walletId, string assetId, double amount) { if (MEConsumer == null) { MeConfig = new ConfigBuilder(); MESettings = MeConfig.ReloadingManager.CurrentValue.AutomatedFunctionalTests.MatchingEngine; MEConsumer = new MatchingEngineConsumer(MESettings.BaseUrl, Int32.Parse(MESettings.Port)); Thread.Sleep(500); } await MEConsumer.Client.UpdateBalanceAsync(Guid.NewGuid().ToString(), walletId, assetId, amount); }