private ICloudBusFactory CreateAwsBus(Configuration config)
 {
     config.WithBusConfiguration(new AwsConfigurator()
                                 .WithClientFactory(new AwsClientFactory(RegionEndpoint.EUWest1))
                                 .WithWorkerConfig(new AwsWorkerConfiguration())
                                 );
     return(config.Build());
 }
        private ICloudBusFactory CreateAzureBus(Configuration config)
        {
            string connectionString = ConfigurationManager.ConnectionStrings["AzureServiceBusConnectionString"].ConnectionString;

            config.WithBusConfiguration(new AzureConfigurator()
                                        .WithClientFactory(new AzureClientFactory(connectionString))
                                        .WithWorkerConfig(new AzureWorkerConfiguration()));
            return(config.Build());
        }