Files
Walleby/Wallet/WalletComponent.cs
T
2024-06-29 11:23:44 +01:00

20 lines
530 B
C#

using Microsoft.Extensions.Hosting;
using Toolkit.Foundation;
namespace Wallet;
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);
}
}