Skip to content

Commit 7c06687

Browse files
committed
Add new ServiceStack.Core.sln
1 parent 16347ac commit 7c06687

2 files changed

Lines changed: 63 additions & 7 deletions

File tree

src/ServiceStack.Core.SelfHost/Startup.cs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,28 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
5252
}
5353

5454

55+
[Route("/hello")]
5556
[Route("/hello/{Name}")]
56-
public class Hello
57+
public class Hello : IReturn<HelloResponse>
5758
{
5859
public string Name { get; set; }
5960
}
6061

61-
public class HelloService : Service
62+
public class HelloResponse
6263
{
63-
public object Any(Hello request)
64-
{
65-
return request;
66-
}
64+
public string Result { get; set; }
65+
}
66+
67+
public class MyServices : Service
68+
{
69+
public object Any(Hello request) =>
70+
new HelloResponse { Result = $"Hello, {request.Name ?? "World"}!" };
6771
}
6872

6973
public class AppHost : AppHostBase
7074
{
7175
public AppHost()
72-
: base(".NET Core Test", typeof(HelloService).GetAssembly()) { }
76+
: base(".NET Core Test", typeof(MyServices).GetTypeInfo().Assembly) { }
7377

7478
public override void Configure(Container container)
7579
{

src/ServiceStack.Core.sln

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceStack.Core.SelfHost", "ServiceStack.Core.SelfHost\ServiceStack.Core.SelfHost.xproj", "{C59FEB65-D1FB-477F-B9F9-7CC2C7397D1A}"
7+
EndProject
8+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceStack", "ServiceStack\ServiceStack.xproj", "{87D6084B-A49E-42BD-A14B-F11B23C5E60D}"
9+
EndProject
10+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceStack.Client", "ServiceStack.Client\ServiceStack.Client.xproj", "{30BD426A-F58C-4EA3-8D22-E3F8FC795943}"
11+
EndProject
12+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceStack.Common", "ServiceStack.Common\ServiceStack.Common.xproj", "{07B9689D-97CE-4178-A7E0-E4E72A74FD07}"
13+
EndProject
14+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceStack.Interfaces", "ServiceStack.Interfaces\ServiceStack.Interfaces.xproj", "{607142D5-A43E-4AE5-8313-447878CA2D1F}"
15+
EndProject
16+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceStack.Text", "ServiceStack.Text\ServiceStack.Text.xproj", "{1392785A-B8DB-4221-80EB-CCBB07F8A42C}"
17+
EndProject
18+
Global
19+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
20+
Debug|Any CPU = Debug|Any CPU
21+
Release|Any CPU = Release|Any CPU
22+
EndGlobalSection
23+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
24+
{C59FEB65-D1FB-477F-B9F9-7CC2C7397D1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25+
{C59FEB65-D1FB-477F-B9F9-7CC2C7397D1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
26+
{C59FEB65-D1FB-477F-B9F9-7CC2C7397D1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
27+
{C59FEB65-D1FB-477F-B9F9-7CC2C7397D1A}.Release|Any CPU.Build.0 = Release|Any CPU
28+
{87D6084B-A49E-42BD-A14B-F11B23C5E60D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29+
{87D6084B-A49E-42BD-A14B-F11B23C5E60D}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{87D6084B-A49E-42BD-A14B-F11B23C5E60D}.Release|Any CPU.ActiveCfg = Release|Any CPU
31+
{87D6084B-A49E-42BD-A14B-F11B23C5E60D}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{30BD426A-F58C-4EA3-8D22-E3F8FC795943}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33+
{30BD426A-F58C-4EA3-8D22-E3F8FC795943}.Debug|Any CPU.Build.0 = Debug|Any CPU
34+
{30BD426A-F58C-4EA3-8D22-E3F8FC795943}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{30BD426A-F58C-4EA3-8D22-E3F8FC795943}.Release|Any CPU.Build.0 = Release|Any CPU
36+
{07B9689D-97CE-4178-A7E0-E4E72A74FD07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37+
{07B9689D-97CE-4178-A7E0-E4E72A74FD07}.Debug|Any CPU.Build.0 = Debug|Any CPU
38+
{07B9689D-97CE-4178-A7E0-E4E72A74FD07}.Release|Any CPU.ActiveCfg = Release|Any CPU
39+
{07B9689D-97CE-4178-A7E0-E4E72A74FD07}.Release|Any CPU.Build.0 = Release|Any CPU
40+
{607142D5-A43E-4AE5-8313-447878CA2D1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41+
{607142D5-A43E-4AE5-8313-447878CA2D1F}.Debug|Any CPU.Build.0 = Debug|Any CPU
42+
{607142D5-A43E-4AE5-8313-447878CA2D1F}.Release|Any CPU.ActiveCfg = Release|Any CPU
43+
{607142D5-A43E-4AE5-8313-447878CA2D1F}.Release|Any CPU.Build.0 = Release|Any CPU
44+
{1392785A-B8DB-4221-80EB-CCBB07F8A42C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
45+
{1392785A-B8DB-4221-80EB-CCBB07F8A42C}.Debug|Any CPU.Build.0 = Debug|Any CPU
46+
{1392785A-B8DB-4221-80EB-CCBB07F8A42C}.Release|Any CPU.ActiveCfg = Release|Any CPU
47+
{1392785A-B8DB-4221-80EB-CCBB07F8A42C}.Release|Any CPU.Build.0 = Release|Any CPU
48+
EndGlobalSection
49+
GlobalSection(SolutionProperties) = preSolution
50+
HideSolutionNode = FALSE
51+
EndGlobalSection
52+
EndGlobal

0 commit comments

Comments
 (0)