Code Monkey home page Code Monkey logo

hosuto's People

Contributors

christophermann avatar fw2568 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

hosuto's Issues

Replace extension services with filters

The current extension Services are called before the module Methods are invoked.

It is not possible to handle both: modifications before method is called and modifications after method is called (for example for testing).
Instead a filter should be used like the aspnetcore filters or middleware.

Replace temporary ServicerProvider with service collection lookup

Instead of building a ServiceProvider from the service collection like

using(var tempServiceProvider = services.BuildServiceProvider())

it would be better to create a custom service provider that uses the service collection to create instances directly. We would loose the abilility to resolve dependencies in this case, but such services are not supported here anyway.

for example like this:

https://github.com/dotnet/aspnetcore/blob/2e4274cb67c049055e321c18cc9e64562da52dcf/src/Mvc/Mvc.Core/src/DependencyInjection/MvcCoreServiceCollectionExtensions.cs#L94-L99

Default configurations are not applied to app host

ConfigureAppConfiguration has currently no effect on ModulesHost.

This leads to problem when configuration should be available before module configuration, especially from ModulesHost.CreateDefaultBuilder.

  return ModulesHost.CreateDefaultBuilder(args)       //not applied to app host
      .ConfigureHostConfiguration(config => config    //applied to app host
      ).ConfigureAppConfiguration((ctx, config) =>     //not applied to app host
      {

      })

Add build task to copy StaticWebAssets.xml of module

Blazor needs the file <Module Assembly>.StaticWebAssets.xml from module to load the assets.
During build the file for the module itself is not copied to output directory of referencing apps.

This is ok in a "normal" web app, but as in Hosuto each module will use the module assembly name as application name (this is a requirement of razor and some other aspnetcore feature).

Current workaround is to copy the missing file from the module directory to all apps using the module. However it would be better when this could be automated with a build task.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.