示例#1
0
        public async Task CreateTopologyFromFileAsync()
        {
            var options = await JsonFileReader.ReadFileAsync <RabbitOptions>("TestConfig.json");

            var top = new Topologer(options);
            await top
            .CreateTopologyFromFileAsync("TestTopologyConfig.json")
            .ConfigureAwait(false);
        }
示例#2
0
        public async Task CreateTopologyFromPartialFileAsync()
        {
            var config = await ConfigReader.ConfigFileReadAsync("TestConfig.json");

            var top = new Topologer(config);
            await top
            .CreateTopologyFromFileAsync("TestPartialTopologyConfig.json")
            .ConfigureAwait(false);
        }