├── .gitignore ├── Jenkinsfile ├── LICENSE ├── README.md ├── Unicorn.sln ├── src └── Infrastructure │ ├── Unicorn.AspNetCore │ ├── Middleware │ │ └── RealIp │ │ │ ├── RealIpFilter.cs │ │ │ ├── RealIpMiddleware.cs │ │ │ ├── RealIpOptions.cs │ │ │ └── WebHostBuilderRealIpExtensions.cs │ └── Unicorn.AspNetCore.csproj │ └── Unicorn.Common │ ├── IpUtil.cs │ └── Unicorn.Common.csproj └── test ├── Unicorn.Common.UnitTests ├── IpUtilTests.cs └── Unicorn.Common.UnitTests.csproj └── Unicorn.Test.WebApi ├── Controllers └── ValuesController.cs ├── Program.cs ├── Startup.cs ├── Unicorn.Test.WebApi.csproj ├── appsettings.Development.json └── appsettings.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/.gitignore -------------------------------------------------------------------------------- /Jenkinsfile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unicorn 2 | ASP.NET Core common code 3 | -------------------------------------------------------------------------------- /Unicorn.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/Unicorn.sln -------------------------------------------------------------------------------- /src/Infrastructure/Unicorn.AspNetCore/Middleware/RealIp/RealIpFilter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/src/Infrastructure/Unicorn.AspNetCore/Middleware/RealIp/RealIpFilter.cs -------------------------------------------------------------------------------- /src/Infrastructure/Unicorn.AspNetCore/Middleware/RealIp/RealIpMiddleware.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/src/Infrastructure/Unicorn.AspNetCore/Middleware/RealIp/RealIpMiddleware.cs -------------------------------------------------------------------------------- /src/Infrastructure/Unicorn.AspNetCore/Middleware/RealIp/RealIpOptions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/src/Infrastructure/Unicorn.AspNetCore/Middleware/RealIp/RealIpOptions.cs -------------------------------------------------------------------------------- /src/Infrastructure/Unicorn.AspNetCore/Middleware/RealIp/WebHostBuilderRealIpExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/src/Infrastructure/Unicorn.AspNetCore/Middleware/RealIp/WebHostBuilderRealIpExtensions.cs -------------------------------------------------------------------------------- /src/Infrastructure/Unicorn.AspNetCore/Unicorn.AspNetCore.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/src/Infrastructure/Unicorn.AspNetCore/Unicorn.AspNetCore.csproj -------------------------------------------------------------------------------- /src/Infrastructure/Unicorn.Common/IpUtil.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/src/Infrastructure/Unicorn.Common/IpUtil.cs -------------------------------------------------------------------------------- /src/Infrastructure/Unicorn.Common/Unicorn.Common.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/src/Infrastructure/Unicorn.Common/Unicorn.Common.csproj -------------------------------------------------------------------------------- /test/Unicorn.Common.UnitTests/IpUtilTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/test/Unicorn.Common.UnitTests/IpUtilTests.cs -------------------------------------------------------------------------------- /test/Unicorn.Common.UnitTests/Unicorn.Common.UnitTests.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/test/Unicorn.Common.UnitTests/Unicorn.Common.UnitTests.csproj -------------------------------------------------------------------------------- /test/Unicorn.Test.WebApi/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/test/Unicorn.Test.WebApi/Controllers/ValuesController.cs -------------------------------------------------------------------------------- /test/Unicorn.Test.WebApi/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/test/Unicorn.Test.WebApi/Program.cs -------------------------------------------------------------------------------- /test/Unicorn.Test.WebApi/Startup.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/test/Unicorn.Test.WebApi/Startup.cs -------------------------------------------------------------------------------- /test/Unicorn.Test.WebApi/Unicorn.Test.WebApi.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/test/Unicorn.Test.WebApi/Unicorn.Test.WebApi.csproj -------------------------------------------------------------------------------- /test/Unicorn.Test.WebApi/appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/test/Unicorn.Test.WebApi/appsettings.Development.json -------------------------------------------------------------------------------- /test/Unicorn.Test.WebApi/appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UCPlan/Unicorn/HEAD/test/Unicorn.Test.WebApi/appsettings.json --------------------------------------------------------------------------------