Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ODS-5622] Make the ODSStartup configurable #1203

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

semalaiappan
Copy link
Contributor

@semalaiappan semalaiappan commented Jan 7, 2025

Update EdFi.Ods.WebApi project Appsettings as :"StartUpClassName": "CustomStartup"

Add below CustomStartup class for testing this change

using Autofac;
using EdFi.Ods.Api.Startup;
using EdFi.Ods.Common.Configuration;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;

namespace EdFi.Ods.WebApi
{
public class CustomStartup : OdsStartupBase
{
public CustomStartup(IWebHostEnvironment env, IConfiguration configuration) : base(env, configuration)
{
}

    public override void ConfigureServices(IServiceCollection services)
    {
        base.ConfigureServices(services);

    }

    public override void ConfigureContainer(ContainerBuilder builder)
    {
        base.ConfigureContainer(builder);
    }
    
    public override void Configure(
        IApplicationBuilder app,
        IWebHostEnvironment env,
        IOptions<ApiSettings> apiSettingsOptions,
        IApplicationConfigurationActivity[] configurationActivities)
    {
        base.Configure(app, env, apiSettingsOptions, configurationActivities);
    }
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant