public void ConfigureBus <TEndpointConfigurator>(IBusFactoryConfigurator <TEndpointConfigurator> configurator, IBusRegistrationContext context)
            where TEndpointConfigurator : IReceiveEndpointConfigurator
        {
            configurator.UseHealthCheck(context);

            if (!string.IsNullOrWhiteSpace(_platformOptions.Prometheus))
            {
                Log.Information("Configuring Prometheus Metrics: {ServiceName}", _platformOptions.Prometheus);

                configurator.UsePrometheusMetrics(serviceName: _platformOptions.Prometheus);
            }

            List <IPlatformStartup> hostingConfigurators = context.GetService <IEnumerable <IPlatformStartup> >()?.ToList();

            foreach (var hostingConfigurator in hostingConfigurators)
            {
                hostingConfigurator.ConfigureBus(configurator, context);
            }

            configurator.ConfigureEndpoints(context);
        }