using log4net; using log4net.Config; namespace SealSecurityNuGetDemoNet7; /// /// Seal Security NuGet Demo Application /// /// This application demonstrates how Seal Security automatically remediates /// vulnerabilities in open-source dependencies during the CI/CD pipeline. /// public class Program { private static readonly ILog Logger = LogManager.GetLogger(typeof(Program)); public static void Main(string[] args) { // Configure log4net BasicConfigurator.Configure(); var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); builder.Services.AddEndpointsApiExplorer(); var app = builder.Build(); app.UseRouting(); app.MapControllers(); Console.WriteLine("=============================================="); Console.WriteLine("Seal Security NuGet Demo Application Started!"); Console.WriteLine("=============================================="); Console.WriteLine("This application uses several dependencies that"); Console.WriteLine("have known vulnerabilities. Seal Security has"); Console.WriteLine("automatically replaced them with patched versions."); Console.WriteLine("=============================================="); Console.WriteLine(); Console.WriteLine("Open http://localhost:5000 in your browser"); Console.WriteLine(); Logger.Info("Application started successfully"); app.Run("http://localhost:5000"); } }