in src/Relecloud.Web.CallCenter.Api/Startup.cs [33:63]
public void ConfigureServices(IServiceCollection services)
{
// Add services to the container.
AddMicrosoftEntraIdServices(services);
services.AddControllers();
services.AddAzureAppConfiguration();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
services.AddEndpointsApiExplorer();
services.AddSwaggerGen();
services.AddApplicationInsightsTelemetry(options =>
{
options.ConnectionString = Configuration["App:Api:ApplicationInsights:ConnectionString"];
});
AddAzureSearchService(services);
AddConcertContextServices(services);
AddDistributedSession(services, _credential);
AddPaymentGatewayService(services);
AddTicketManagementService(services);
AddTicketImageService(services);
// The ApplicationInitializer is injected in the Configure method with all its dependencies and will ensure
// they are all properly initialized upon construction.
services.AddScoped<ApplicationInitializer, ApplicationInitializer>();
services.AddHealthChecks();
}