Amend compoments to be keyed based
This commit is contained in:
@@ -1,6 +1,20 @@
|
||||
using Toolkit.Foundation;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Toolkit.Foundation;
|
||||
|
||||
namespace Wallet;
|
||||
|
||||
public class WalletComponent(IComponentBuilder builder) : Component(builder),
|
||||
IWalletComponent;
|
||||
public class WalletComponent(IHostEnvironment environment,
|
||||
IComponentBuilder builder) :
|
||||
Component(builder)
|
||||
{
|
||||
public override IComponentBuilder Configuring(string key,
|
||||
IComponentBuilder builder)
|
||||
{
|
||||
builder.SetComponentConfiguration(args =>
|
||||
{
|
||||
args.ContentRoot = Path.Combine(environment.ContentRootPath, key.Replace(":", "\\"));
|
||||
});
|
||||
|
||||
return base.Configuring(key, builder);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user