Skip to content

Split Foundatio.Extensions.Hosting in two #279

Open
@pinkfloydx33

Description

Currently, Foundatio.Extensions.Hosting has a FrameworkReference to Microsoft.AspNetCore.App in order to accommodate the startup filters and middleware. However, this package isn't just limited to ASP.NET. In fact, we use it inside of a Worker Service (no web component) to leverage the HostedJobService and friends. I noticed today while examining the outputs of a self-contained publish that the ASPNET shared framework assemblies were all being included. This is increasing application publish size (and the size of our docker images) and is entirely unnecessary for non-ASP applications.

I suggest splitting the package into two -- one for the hosted service infrastructure and the other for the ASP.NET-specific components.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions