Black.Beard.Web.Server 1.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package Black.Beard.Web.Server --version 1.0.8                
NuGet\Install-Package Black.Beard.Web.Server -Version 1.0.8                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Black.Beard.Web.Server" Version="1.0.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Black.Beard.Web.Server --version 1.0.8                
#r "nuget: Black.Beard.Web.Server, 1.0.8"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Black.Beard.Web.Server as a Cake Addin
#addin nuget:?package=Black.Beard.Web.Server&version=1.0.8

// Install Black.Beard.Web.Server as a Cake Tool
#tool nuget:?package=Black.Beard.Web.Server&version=1.0.8                

Net.Server

Provide a service base for just concentrate on services

Build status

Installation

$ install-package Black.Beard.Web.Server

Usage


    /// <summary>
    /// Startup class par parameter
    /// </summary>
    public class Startup : StartupBase
    {

        /// <summary>
        /// Initializes a new instance of the <see cref="Startup"/> class.
        /// </summary>
        /// <param name="configuration">The configuration.</param>
        public Startup(IConfiguration configuration) 
            : base(configuration)
        {
      
        }

        public override void ConfigureServices(IServiceCollection services)
        {
            // Yours configuration           
            base.ConfigureServices(services);
        }

        /// <summary>
        /// Configures the custom services.
        /// </summary>
        /// <param name="services"></param>
        public override void AppendServices(IServiceCollection services)
        {
            RegisterServicesPolicies(services);
        }

    
        /// <summary>
        /// Configures the specified application.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="env">The env.</param>
        /// <param name="loggerFactory">The logger factory.</param>
        public override void ConfigureApplication(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
        {

            base.ConfigureApplication(app, env, loggerFactory);
                        
            app
                .UseHttpsRedirection()
                .UseRouting()
                .UseListener()

                //.UseApiKey()                      // Intercept apiKey and create identityPrincipal associated
                //.UseAuthorization()               // Apply authorization for identityPrincipal
                ;

        }

    }


    internal class Program
    {

        /// <summary>
        /// Main entry point of the application.
        /// </summary>
        /// <param name="args"></param>
        public static void Main(string[] args)
        {
            var service = GetService(args);
            service.Run();
        }

        public static ServiceRunnerBase GetService(string[] args)
        {              
            return new ServiceRunner<Startup>(args);
        }

    }

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.31 132 5/6/2024
1.0.30 134 5/5/2024
1.0.29 106 4/24/2024
1.0.28 125 4/24/2024
1.0.27 120 4/24/2024
1.0.26 122 4/24/2024
1.0.25 114 4/22/2024
1.0.24 125 4/18/2024
1.0.23 122 4/15/2024
1.0.22 129 4/14/2024
1.0.21 120 4/13/2024
1.0.20 116 4/12/2024
1.0.19 113 4/8/2024
1.0.18 117 4/7/2024
1.0.17 137 3/30/2024
1.0.16 124 3/28/2024
1.0.15 134 3/27/2024
1.0.14 138 3/27/2024
1.0.13 102 3/27/2024
1.0.12 117 3/26/2024
1.0.11 118 3/26/2024
1.0.10 124 3/24/2024
1.0.9 122 3/24/2024
1.0.8 117 3/24/2024
1.0.7 123 3/24/2024