Skip to content
Discussion options

You must be logged in to vote

I added the following "CreateScopePerCall = false" to the configuration and now it seems to be working a little closer to what I expected.

builder.Services.AddCsla(cslaOptions => 
    cslaOptions
        .AddServerSideBlazor()
        .DataPortal()
            .AddServerSideDataPortal()
            .UseLocalProxy(proxyOptions => 
                proxyOptions.CreateScopePerCall = false));

Now it works like this:

  1. the first time across the DataPortal I get a new JTDataAdapterManger (unique for each user/circuit)
  2. each subsequent DataPortal call (either chained child call or fresh calls from the client) gets the instance already created for them

@rockfordlhotka et.al. can you explain what ar…

Replies: 3 comments 8 replies

Comment options

swegele
Jan 9, 2022
Collaborator Author

You must be logged in to vote
0 replies
Comment options

swegele
Jan 9, 2022
Collaborator Author

You must be logged in to vote
8 replies
@TheCakeMonster
Comment options

@swegele
Comment options

swegele Jan 11, 2022
Collaborator Author

@TheCakeMonster
Comment options

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

Answer selected by swegele
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants