Created
June 25, 2018 16:49
-
-
Save sfmskywalker/76b18744c604c35a9d1529b099b63a8f to your computer and use it in GitHub Desktop.
The Startup class for the RemoteIp 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 = "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