Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
199ad621
Commit
199ad621
authored
Jul 23, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get a little further with kestrel
parent
78a37102
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
6 deletions
+44
-6
.gitignore
.gitignore
+2
-1
KestrelRedisServer.csproj
KestrelRedisServer/KestrelRedisServer.csproj
+6
-3
Program.cs
KestrelRedisServer/Program.cs
+6
-2
Startup.cs
KestrelRedisServer/Startup.cs
+30
-0
No files found.
.gitignore
View file @
199ad621
...
...
@@ -23,3 +23,4 @@ test-results*.xml
packages/
StackExchange.Redis.Tests/*Config.json
t8.shakespeare.txt
launchSettings.json
\ No newline at end of file
KestrelRedisServer/KestrelRedisServer.csproj
View file @
199ad621
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk
.Web
">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.2" />
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
<ProjectReference Include="..\StackExchange.Redis.Server\StackExchange.Redis.Server.csproj" />
</ItemGroup>
</Project>
KestrelRedisServer/Program.cs
View file @
199ad621
...
...
@@ -15,11 +15,15 @@ public static void Main(string[] args)
WebHost
.
CreateDefaultBuilder
(
args
)
.
UseKestrel
(
options
=>
{
// HTTP 5000
options
.
ListenLocalhost
(
5000
);
// TCP 6379
options
.
ListenLocalhost
(
8007
,
builder
=>
options
.
ListenLocalhost
(
6379
,
builder
=>
{
builder
.
UseConnectionHandler
<
RedisConnectionHandler
>();
});
});
})
.
UseStartup
<
Startup
>()
;
}
}
KestrelRedisServer/Startup.cs
0 → 100644
View file @
199ad621
using
Microsoft.AspNetCore.Builder
;
using
Microsoft.AspNetCore.Hosting
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.Extensions.DependencyInjection
;
namespace
KestrelRedisServer
{
public
class
Startup
{
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public
void
ConfigureServices
(
IServiceCollection
services
)
{
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public
void
Configure
(
IApplicationBuilder
app
,
IHostingEnvironment
env
)
{
if
(
env
.
IsDevelopment
())
{
app
.
UseDeveloperExceptionPage
();
}
app
.
Run
(
async
(
context
)
=>
{
await
context
.
Response
.
WriteAsync
(
"Redis-ish server should be running"
);
});
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment