Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

NopStartup.cs

using Nop.Core.Infrastructure;
using Nop.Web.Areas.Admin.Factories;
using Nop.Web.Areas.Admin.Helpers;
using Nop.Web.Framework.Factories;
using Nop.Web.Infrastructure.Installation;

namespace Nop.Web.Infrastructure;

/// 
/// Represents the registering services on application startup
/// 
public partial class NopStartup : INopStartup
{
    /// 
    /// Add and configure any of the middleware
    /// 
    /// Collection of service descriptors
    /// Configuration of the application
    public virtual void ConfigureServices(IServiceCollection services, IConfiguration configuration)
    {
        //installation localization service
        services.AddScoped();

        //common factories
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();

        //admin factories
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();

        //factories
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();
        services.AddScoped();

        //helpers classes
        services.AddScoped();
    }

    /// 
    /// Configure the using of added middleware
    /// 
    /// Builder for configuring an application's request pipeline
    public void Configure(IApplicationBuilder application)
    {
    }

    /// 
    /// Gets order of this startup configuration implementation
    /// 
    public int Order => 2002;
}