Try your search with a different keyword or use * as a wildcard.
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Nop.Core.Infrastructure;
using Nop.Plugin.Misc.AzureBlob.Services;
using Nop.Services.Media;
namespace Nop.Plugin.Misc.AzureBlob.Infrastructure;
///
/// Represents the object for the configuring services on application startup
///
public class PluginNopStartup : INopStartup
{
///
/// Add and configure any of the middleware
///
/// Collection of service descriptors
/// Configuration of the application
public void ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
services.AddTransient();
services.AddTransient();
services.AddTransient(provider =>
{
var settings = provider.GetRequiredService();
if (settings.Enabled && !string.IsNullOrEmpty(settings.ConnectionString) && !string.IsNullOrEmpty(settings.EndPoint))
return provider.GetRequiredService();
return provider.GetRequiredService();
});
}
///
/// 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;
}