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 · 2 comments
Closed
Assignees

Comments

@rockfordlhotka
Copy link
Member

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
Copy link
Member Author

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
@github-actions
Copy link

github-actions bot commented Aug 8, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Version 5.1.0
  
Done
Development

No branches or pull requests

1 participant