Giter VIP home page Giter VIP logo

homely.aspnetcore.hosting.coreapp's Introduction

Welcome to Homely's GitHub repositories

This is the home page / project overview for Homely.com.au open source projects.

At Homely, most of our development is done in private (with private repositories) but we do encourage to try and see if some of the code we do in our day-to-day work (which is used in our private systems) can be abstracted enough into a public project, for others to take advantage of.

We hope that other developers like yourself might find some of our efforts useful and/or enspiring!


Contributing

Discussions and pull requests are encouraged :) Please ask all general questions in this repository or pick a specialized repository for specific, targetted issues. We have a contributing document which goes into detail about how to do this.

Code of Conduct

Yep, we also have a code of conduct which applies to all repositories in the GitHub Homely.com.au organisation.

Languages currently supported

  • C# on .NET. Packages available on NuGet.

Feedback

Check out the contributing page to see the best places to log issues and start discussions.


homely.aspnetcore.hosting.coreapp's People

Contributors

purekrome avatar rpm1984 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

purekrome rpm1984

homely.aspnetcore.hosting.coreapp's Issues

Add Data-Seeding into program starting by using Generic Host with .NET Core 3.0.

Currently, data-seeding kicks off in during the Configure/ConfigureServices methods in startup.cs which means the web host has started and could be accepting connections before the DB has been seeded.

So instead update to .NET Core 3.0 and use GenericHost.

Explained here: dotnet/aspnetcore#10137 (comment)
Sample project here: https://github.com/PureKrome/AspNetCore3-P5-DataSeeding-Experiment/blob/master/Program.cs#L24

Current implementation doesn't play nice with ASP.NET Core Integration tests

The way the current ASP.NET Core Integration tests work is it hooks into the referenced Startup host file, in order to leverage the web host builder.

But due to this current implementation, it's hidden and not available to the main Program.cs.

Resulting in an error like this:

Message: System.InvalidOperationException : No method 'public static IWebHostBuilder CreateWebHostBuilder(string[] args)' found on 'xyz.Program'. Alternatively, WebApplicationFactory`1 can be extended and 'protected virtual IWebHostBuilder CreateWebHostBuilder()' can be overridden to provide your own IWebHostBuilder instance.

Since Program.cs needs to be static, that means we can't leverage any inheritance etc. So might not be able to use this helper lib, if tests are needed (which is all the time, i'd hope). ๐Ÿ˜ข

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.