Renamed JsonInvocationAdapter to JsonNetInvocationAdapter
This commit is contained in:
parent
9e7513a7bd
commit
0f863be588
|
|
@ -6,11 +6,11 @@ using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace SocketsSample
|
namespace SocketsSample
|
||||||
{
|
{
|
||||||
public class JsonInvocationAdapter : IInvocationAdapter
|
public class JsonNetInvocationAdapter : IInvocationAdapter
|
||||||
{
|
{
|
||||||
private JsonSerializer _serializer = new JsonSerializer();
|
private JsonSerializer _serializer = new JsonSerializer();
|
||||||
|
|
||||||
public JsonInvocationAdapter()
|
public JsonNetInvocationAdapter()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -49,7 +49,7 @@ namespace SocketsSample
|
||||||
app.UseRpc(invocationAdapters =>
|
app.UseRpc(invocationAdapters =>
|
||||||
{
|
{
|
||||||
invocationAdapters.AddInvocationAdapter("protobuf", new ProtobufInvocationAdapter(app.ApplicationServices));
|
invocationAdapters.AddInvocationAdapter("protobuf", new ProtobufInvocationAdapter(app.ApplicationServices));
|
||||||
invocationAdapters.AddInvocationAdapter("json", new JsonInvocationAdapter());
|
invocationAdapters.AddInvocationAdapter("json", new JsonNetInvocationAdapter());
|
||||||
invocationAdapters.AddInvocationAdapter("line", new LineInvocationAdapter());
|
invocationAdapters.AddInvocationAdapter("line", new LineInvocationAdapter());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue