Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33 lines (29 sloc)
708 Bytes
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 System; | |
using System.Linq; | |
using ServiceStack; | |
using ServiceStack.Text; | |
namespace Server | |
{ | |
public class ServerPlugin : IPlugin | |
{ | |
public void Register(IAppHost appHost) | |
{ | |
} | |
} | |
//[Route("/hello/{Name}")] // Handled by /hello/_name.html API page, uncomment to take over | |
public class Hello : IReturn<HelloResponse> | |
{ | |
public string Name { get; set; } | |
} | |
public class HelloResponse | |
{ | |
public string Result { get; set; } | |
} | |
public class MyServices : Service | |
{ | |
public object Any(Hello request) | |
{ | |
return new HelloResponse { Result = $"Hi {request.Name} from server.dll" }; | |
} | |
} | |
} |