Skip to content

Commit

Permalink
Fixing tabs/spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
anaximander23 authored and jeremydmiller committed Feb 20, 2021
1 parent 1140635 commit 38e83d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions documentation/documentation/ioc/blazor.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ namespace Lamar.Sample.Blazor
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
// configure Blazor to use Lamar
// configure Blazor to use Lamar
builder.ConfigureContainer<ServiceRegistry>(new LamarServiceProviderFactory(), ConfigureServices);
await builder.Build().RunAsync();
}
private static void ConfigureServices(ServiceRegistry services)
{
// here you can configure Lamar as normal
services.For<IFoo>().Use<Foo>().Singleton();
// here you can configure Lamar as normal
services.For<IFoo>().Use<Foo>().Singleton();
services.IncludeRegistry<FooRegistry>();
}
}
Expand Down

0 comments on commit 38e83d2

Please sign in to comment.