Skip to content

Instantly share code, notes, and snippets.

@sfmskywalker
Created June 25, 2018 16:49
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/76b18744c604c35a9d1529b099b63a8f to your computer and use it in GitHub Desktop.
Save sfmskywalker/76b18744c604c35a9d1529b099b63a8f to your computer and use it in GitHub Desktop.
The Startup class for the RemoteIp feature
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Modules;
[assembly: OrchardCore.Modules.Manifest.Feature(
Id = "RemoteIp",
Name = "RemoteIp"
)]
namespace MultiTenantApp.Features.RemoteIp
{
[Feature("RemoteIp")]
public class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<IMessageProvider, RemoteIpMessageProvider>();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment