forked from EtchUK/Etch.OrchardCore.ContextualEdit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Startup.cs
24 lines (21 loc) · 811 Bytes
/
Startup.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Etch.OrchardCore.ContextualEdit.Drivers;
using Etch.OrchardCore.ContextualEdit.Models;
using Etch.OrchardCore.ContextualEdit.Services;
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.ContentManagement;
using OrchardCore.ContentManagement.Display.ContentDisplay;
using OrchardCore.Data.Migration;
using OrchardCore.Modules;
namespace Etch.OrchardCore.ContextualEdit
{
public class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddContentPart<ContextualEditPart>()
.UseDisplayDriver<ContextualEditPartDisplay>();
services.AddScoped<IContextualEditService, ContextualEditService>();
services.AddScoped<IDataMigration, Migrations>();
}
}
}