Created
June 25, 2018 16:45
-
-
Save sfmskywalker/45aa58b557f54178de13c665ff4efa67 to your computer and use it in GitHub Desktop.
Startup class for the TimeOfDay feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.DependencyInjection; | |
using OrchardCore.Modules; | |
[assembly: OrchardCore.Modules.Manifest.Feature( | |
Id = "TimeOfDay", | |
Name = "TimeOfDay" | |
)] | |
namespace MultiTenantApp.Features.TimeOfDay | |
{ | |
[Feature("TimeOfDay")] | |
public class Startup : StartupBase | |
{ | |
public override void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddScoped<IMessageProvider, TimeOfDayMessageProvider>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment