-
Notifications
You must be signed in to change notification settings - Fork 9
Home
Stoom edited this page Oct 24, 2016
·
1 revision
RService.IO
is one of the first web service frameworks for ASP.Net Core! It was based on concepts from NService
, better known as ServiceStackv3
, but with a bit of a twist. The goal is to provide a fast minimal web service framework that is best for anything from micro-services to full on APIs.
To use RService.IO
simply create a new ASP.Net Core project. In the Startup.cs
file add the following code:
public void ConfigureService(IServiceCollection service)
{
services.AddRServiceIo(opts =>
{
opts.AddServiceAssembly(typeof(FancyNewService));
opts.EnableDebugging = true; // This is optional but will display the developer exception page
});
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
app.UseRServiceIo();
}
Then just create a service that implements IService
. On a side note, currently void
methods are not allowed for service endpoints.
Please feel free to contribute to this project. You can do so by making a fork and submitting a Pull Request.
If you find a bug please open an Issue
with the following:
- Description of the issue/bug
- If available an example of the code causing the issue/bug
@stoom - Founder