Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

1.1 KB
Raw Blame
using Grand.Business.Cms.Services;
using Grand.Business.Core.Interfaces.Cms;
using Grand.Infrastructure;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace Grand.Business.Cms.Startup;

public class StartupApplication : IStartupApplication
{
    public void ConfigureServices(IServiceCollection services, IConfiguration configuration)
    {
        services.AddScoped<IBlogService, BlogService>();
        services.AddScoped<IWidgetService, WidgetService>();
        services.AddScoped<INewsService, NewsService>();
        services.AddScoped<IKnowledgebaseService, KnowledgebaseService>();
        services.AddScoped<IPageLayoutService, PageLayoutService>();
        services.AddScoped<IPageService, PageService>();
        services.AddScoped<ICookiePreference, CookiePreference>();
        services.AddScoped<IRobotsTxtService, RobotsTxtService>();
    }

    public void Configure(WebApplication application, IWebHostEnvironment webHostEnvironment)
    {
    }

    public int Priority => 100;
    public bool BeforeConfigure => false;
}