Unravel.Startup 0.1.13-alpha

This is a prerelease version of Unravel.Startup.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Unravel.Startup --version 0.1.13-alpha
                    
NuGet\Install-Package Unravel.Startup -Version 0.1.13-alpha
                    
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="Unravel.Startup" Version="0.1.13-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Unravel.Startup" Version="0.1.13-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Unravel.Startup" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Unravel.Startup --version 0.1.13-alpha
                    
#r "nuget: Unravel.Startup, 0.1.13-alpha"
                    
#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.
#:package Unravel.Startup@0.1.13-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Unravel.Startup&version=0.1.13-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Unravel.Startup&version=0.1.13-alpha&prerelease
                    
Install as a Cake Tool

Unravel.Startup

Unravel provides a fully configurable ASP.NET Core IWebHost on top of System.Web via OWIN, with forward-compatible dependency injection, configuration and logging.

  • Unravel.Application
    • Inherits from System.Web.HttpApplication
    • Provides OWIN Startup
    • Provides ASP.NET Core Startup, including ConfigureServices(IServiceCollection)
    • Builds an ASP.NET Core IWebHost, including an IServiceProvider
      • Static Unravel.Application.Services service locator
      • Scoped per HttpContext
      • With GetRequestServices() extension methods
  • OwinHost.CreateDefaultBuilder(), equivalent to WebHost.CreateDefaultBuilder().
    • Microsoft.Extensions.Configuration
      • ConfigurationManagerConfigurationProvider inspired by @benfoster
      • appsettings.json and appsettings.{env}.json
      • User Secrets (Development only)
      • Environment Variables
    • Microsoft.Extensions.DependencyInjection
    • Microsoft.Extensions.Logging
      • Configured from IConfiguration
      • Debug Logger

Setup

  1. Install Unravel.Startup

  2. Open Global.asax.cs:

    • Rename the class to Startup
    • Make the class partial
    • Inherit from Unravel.Application
    -public class MvcApplication : System.Web.HttpApplication
    +public partial class Startup : Unravel.Application
    

    Make sure the Inherits in Global.asax updated, too

    -<%@ Application CodeBehind="Global.asax.cs" Inherits="UnravelExamples.Web.MvcApplication" Language="C#" %>
    +<%@ Application CodeBehind="Global.asax.cs" Inherits="UnravelExamples.Web.Startup" Language="C#" %>
    
  3. If you already have a Startup.cs:

    1. Make it partial
    2. Replace void Configuration(IAppBuilder app) with override void ConfigureOwin(IAppBuilder app)

    If you don't, create one.

    Then you can override ConfigureServices(), too.

    // Startup.cs
    public partial class Startup
    {
        public override void ConfigureServices(IServiceCollection services)
        {
        }
    
        public override void ConfigureOwin(IAppBuilder app)
        {
        }
    }
    
Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Unravel.Startup:

Package Downloads
Unravel.AspNet.Mvc

Package Description

Unravel.AspNet.WebApi

Package Description

Unravel.AspNet.Identity

Package Description

Unravel.AspNetCore.Mvc

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.36-alpha 2,774 5/26/2024
0.1.30-alpha 900 3/6/2024
0.1.26-alpha 85 3/4/2024
0.1.20-alpha 323 7/10/2023
0.1.13-alpha 133 7/10/2023
0.1.11-alpha 141 7/9/2023