|
|
@@ -1,4 +1,5 @@
|
|
|
-using YSAI.Rpc.service;
|
|
|
+using YSAI.Log;
|
|
|
+using YSAI.Rpc.service;
|
|
|
using YSAI.Unility;
|
|
|
|
|
|
|
|
|
@@ -18,7 +19,7 @@ RpcService rpvService = RpcService.Instance(new YSAI.Rpc.data.Service.Basics
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-Console.WriteLine(rpvService.Open().ToJson().JsonFormatting());
|
|
|
+LogHelper.Info(rpvService.Open().ToJson().JsonFormatting());
|
|
|
|
|
|
//注册
|
|
|
rpvService.Register<IHello, hello>();
|
|
|
@@ -30,7 +31,7 @@ while (true)
|
|
|
//创建
|
|
|
IHello hello = rpvService.Create<IHello>();
|
|
|
hello.Kitty(new Test { aaaa = "服务端 => 客户端", bbbb = DateTime.Now.ToDateTimeString() });
|
|
|
- Console.WriteLine(hello.Get());
|
|
|
+ LogHelper.Info(hello.Get());
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -56,7 +57,7 @@ public class hello : IHello
|
|
|
|
|
|
public void Kitty(Test test)
|
|
|
{
|
|
|
- Console.WriteLine(test.ToJson().JsonFormatting());
|
|
|
+ LogHelper.Info(test.ToJson().JsonFormatting());
|
|
|
}
|
|
|
}
|
|
|
public class hello2 : IHello
|