Skip to content
Turn your interface into an RPC service
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Examples
InterfaceRpc.Client
InterfaceRpc.Service.Authentication
InterfaceRpc.Service
.gitignore
InterfaceRpc.sln
LICENSE
README.md

README.md

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

You can’t perform that action at this time.