Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Startup class for the TimeOfDay feature
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
You can’t perform that action at this time.