Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust init/config support for new client-side Blazor templates #1476

Closed
rockfordlhotka opened this issue Feb 3, 2020 · 1 comment
Closed

Adjust init/config support for new client-side Blazor templates #1476

rockfordlhotka opened this issue Feb 3, 2020 · 1 comment

Comments

@rockfordlhotka
Copy link
Member

@rockfordlhotka rockfordlhotka commented Feb 3, 2020

Microsoft just released updated client-side Blazor project templates that no longer use Startup.cs and instead appear to put all config into Program.cs.

Reported in MarimerLLC/cslaforum#872

A short-term workaround is:

  public class Program
  {
    public static async Task Main(string[] args)
    {
      var builder = WebAssemblyHostBuilder.CreateDefault(args);
      builder.RootComponents.Add<App>("app");

      builder.Services.AddCsla();
      CslaConfiguration.Configure().
        ContextManager(typeof(Csla.Blazor.ApplicationContextManager));

      await builder.Build().RunAsync();
    }
  }

But better abstraction should be provided via Csla.Configuration.

@rockfordlhotka rockfordlhotka self-assigned this Feb 3, 2020
@rockfordlhotka rockfordlhotka added this to To do in Version 5.1.0 via automation Feb 3, 2020
@rockfordlhotka rockfordlhotka moved this from To do to In progress in Version 5.1.0 Feb 5, 2020
@rockfordlhotka

This comment has been minimized.

Copy link
Member Author

@rockfordlhotka rockfordlhotka commented Feb 5, 2020

rockfordlhotka added a commit to rockfordlhotka/csla that referenced this issue Feb 5, 2020
Version 5.1.0 automation moved this from In progress to Done Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Version 5.1.0
  
Done
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.