示例#1
0
        public void Configure(IComponentsApplicationBuilder app)
        {
            app.AddComponent <App>("app");

            app.UseCsla((c) =>
                        c.DataPortal().DefaultProxy(typeof(Csla.DataPortalClient.HttpProxy), "/api/DataPortal"));
        }
示例#2
0
        public void Configure(IComponentsApplicationBuilder app)
        {
            //app.AddComponent<App>("app");
            app.AddComponent <ProjectTracker.Ui.Blazor.App>("app");
            ProjectTracker.Ui.Blazor.App.IsServerSide = false;

            app.UseCsla(c => c
                        .DataPortal()
                        .DefaultProxy(typeof(Csla.DataPortalClient.HttpProxy), "http://localhost:8040/api/dataportaltext/"));
        }
示例#3
0
        public void Configure(IComponentsApplicationBuilder app)
        {
            app.AddComponent <App>("app");

            // detect when the authentication state changes, and update Csla ApplicationContext.User
            var authStateProvider = app.Services.GetRequiredService <AuthenticationStateProvider>();

            authStateProvider.AuthenticationStateChanged += AuthStateProvider_AuthenticationStateChanged;

            app.UseCsla((c) =>
                        c.DataPortal().DefaultProxy(typeof(Csla.DataPortalClient.HttpProxy), "/api/DataPortal"));
        }