The emulator for the Piral.Blazor.Server.Samples.Tractor application.
Get Started
No framework information available.
README
Piral.Blazor.Server.Samples.Tractor.Emulator
The emulator for the Piral.Blazor.Server.Samples.Tractor application.
Usage
Create a new Razor Component Library (RCL). Change the csproj to use the SDK:
<Project Sdk="Piral.Blazor.Sdk/0.4.0-preview.7889205161">
<PropertyGroup>
<!-- ... as beforehand -->
</PropertyGroup>
</Project>
Indicate that you want to reference this version of the emulator:
<Project Sdk="Piral.Blazor.Sdk/0.4.0-preview.7889205161">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>0.1.0</Version>
<AppShell>Piral.Blazor.Server.Samples.Tractor.Emulator/0.1.7</AppShell>
</PropertyGroup>
<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Piral.Blazor.Server.Samples.Tractor.Emulator" Version="0.1.7" PrivateAssets="all" />
</ItemGroup>
</Project>
Create a new class for the module. This class needs to implement the IMfModule interface.
public class Module : IMfModule
{
public void Configure(IServiceCollection services)
{
// register your services here
}
public Task Setup(IMfAppService app)
{
// wire up your components / events here
return Task.CompletedTask;
}
public Task Teardown(IMfAppService app)
{
// don't forget to destroy resources
return Task.CompletedTask;
}
}
That's it! Now you can start coding following the concepts outlined for any micro frontend in the Piral.Blazor.Server world.
More Documentation
You can find more information on the following websites:
Downloads by Version
Depended On By
Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.