Info
Version: | 1.0.4.9 |
Author(s): | Dcp.Net.MQ.Rpc |
Last Update: | Monday, July 18, 2022 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Dcp.Net.MQ.Rpc |
Install
Install-Package Dcp.Net.MQ.Rpc
dotnet add package Dcp.Net.MQ.Rpc
paket add Dcp.Net.MQ.Rpc
Dcp.Net.MQ.Rpc Download (Unzip the "nupkg" after downloading)
Dependencies
- Dcp.Net.MQ.KafkaMQ(>= 1.0.0.2)
- Dcp.Net.MQ.RabbitMQ(>= 1.0.2.3)
- System.Reflection.Emit(>= 4.7.0)
rpcManager.RegisterAssembly(typeof(Program).Assembly);
rpcManager.StartServer();
rpcManager.CreateClient();
var rpcTestApi = DcpApiClientProxy.Create<IRpcTestApi>();
while (Console.ReadLine()!="exit")
{
var result=rpcTestApi.WriteLine("测试WriteLine方法=》" + DateTime.Now).Result;
Console.WriteLine("client"+result.data);
}.