Webiant Logo Webiant Logo
  1. No results found.

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

NopStartup.cs

using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Nop.Core.Infrastructure;
using Nop.Plugin.Tax.FixedOrByCountryStateZip.Services;
using Nop.Services.Tax;

namespace Nop.Plugin.Tax.FixedOrByCountryStateZip.Infrastructure;

/// 
/// Represents object for the configuring services on application startup
/// 
public class NopStartup : INopStartup
{
    /// 
    /// Add and configure any of the middleware
    /// 
    /// Collection of service descriptors
    /// Configuration of the application
    public void ConfigureServices(IServiceCollection services, IConfiguration configuration)
    {
        services.AddScoped();
        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 => 3000;
}