Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

InterfaceRpc

Turn your interface into an RPC service!

NuGet Package Version
InterfaceRpc.Client NuGet Status
InterfaceRpc.Service NuGet Status

Given the interface:

public interface IEchoService
{
  string Echo(string echo);
}

You can create and run an RPC-HTTP based service, like so:

var svc = new RpcService<IEchoService>(new EchoService());
svc.Start();

Then make HTTP POSTs to http://localhost:6000/Echo (domain and port are configurable)

You can make a client to do this for you, like so:

var client = RpcClient<IEchoService>.Create("http://localhost:6000/");
var result = client.Echo("hello");

You can use any of the serializers available in SerializerDotNet - currently JSON and Protobuf

About

Turn your interface into an RPC service

Resources

License

Releases

No releases published

Packages

No packages published

Languages