more refoctoring work
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
namespace Hyperbar.Widget.Contextual;
|
||||
|
||||
public class ContextualWidget :
|
||||
IWidget
|
||||
{
|
||||
public IWidgetBuilder Create() =>
|
||||
WidgetBuilder.Configure<ContextualWidgetConfiguration>(args =>
|
||||
{
|
||||
args.Id = Guid.Parse("d3030852-8d4a-4fbb-9aa5-96dff3dfa06c");
|
||||
args.Name = "Contextual commands";
|
||||
|
||||
}).ConfigureServices(args =>
|
||||
{
|
||||
args.AddWidgetTemplate<ContextualWidgetViewModel>();
|
||||
});
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Hyperbar.Widget.Contextual;
|
||||
|
||||
public class ContextualWidgetBuilder :
|
||||
IWidgetBuilder
|
||||
{
|
||||
public void Create(IServiceCollection services) =>
|
||||
WidgetBuilder.Config(services, config =>
|
||||
{
|
||||
config.Id = Guid.Parse("d3030852-8d4a-4fbb-9aa5-96dff3dfa06c");
|
||||
config.Name = "Contextual commands";
|
||||
|
||||
services.AddWidgetTemplate<ContextualWidgetViewModel>();
|
||||
});
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
namespace Hyperbar.Widget.Contextual;
|
||||
|
||||
public class ContextualWidgetConfiguration
|
||||
public class ContextualWidgetConfiguration :
|
||||
WidgetConfiguration
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user