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

Non referenced RCLs (RazorClassLibraries) #46

Open
FrMalan opened this issue May 7, 2020 · 1 comment
Open

Non referenced RCLs (RazorClassLibraries) #46

FrMalan opened this issue May 7, 2020 · 1 comment
Labels
question Further information is requested requires thinking Incomplete definition

Comments

@FrMalan
Copy link

FrMalan commented May 7, 2020

Hi,

I am working through the wiki docs and thank you for taking the time to write some docs. I realize these are early days, so I would like to ask:

For a wasm client, can one create RCL modules that are not directly referenced by the wasm project (or a modulesHost project), kind of a "disconnected" setup where I could then build a module from a separate solution and deploy the output to some common modules folder?

@isc30
Copy link
Owner

isc30 commented May 7, 2020

Yes absolutely! You can reference BlazorLazyLoading.Module from an isolated project and then later deploy the _content folder of the Module to the Wasm wwwroot folder.

There are 2 ways of consuming the module from that point:

Manual approach

Inject IAssemblyLoader and call LoadAssemblyByName. The module DLLs and it's dependencies will be automatically located based on the name.

Automatic approach

Use <Lazy ModuleName="WHATEVER" Name="TYPE_FULL_NAME" /> to force a module discovery and render that component.

If you can give me a more in-detail example of what you are trying to achieve I can give you a more specific answer and even adapt the existing system for such scenarios.

Sorry that there is no documentation yet on the "raw" stuff like IAssemblyLoader. Thanks!

@isc30 isc30 added question Further information is requested requires thinking Incomplete definition labels May 7, 2020
@isc30 isc30 changed the title Non referenced RCLs Non referenced RCLs (RazorClassLibraries) May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested requires thinking Incomplete definition
Projects
None yet
Development

No branches or pull requests

2 participants