Skip to content

Instantly share code, notes, and snippets.

@sfmskywalker
Created June 25, 2018 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sfmskywalker/45aa58b557f54178de13c665ff4efa67 to your computer and use it in GitHub Desktop.
Save sfmskywalker/45aa58b557f54178de13c665ff4efa67 to your computer and use it in GitHub Desktop.
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