Info
Version: | 1.0.1 |
Author(s): | Damir Dobric |
Last Update: | Monday, August 29, 2016 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/OwinFirewall |
Install
Install-Package OwinFirewall
dotnet add package OwinFirewall
paket add OwinFirewall
OwinFirewall Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.AspNetCore.Owin(>= 1.0.0)
- NETStandard.Library(>= 1.6.0)
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
app.UseOwinFirewall(new Daenet.Owin.OwinFirewallOptions(new List<string>()
{ "81.207.142.79", "::1", "localhost", "222.111.228.225/27" }));
app.UseMvc();
}.