protected override Task DoHandleAsync(GrpcContext context) { return(Task.Run(() => { context.StartMonitor(); _logger.Info($"Receive the msg, msg type is: {context.Message.GetType().FullName}, data: {_jsonSerializer.Serialize(context.Message)}"); })); }
protected override void DoHandle(GrpcContext context) { context.StartMonitor(); _logger.Info($"Receive the msg, msg type is: {context.Message.GetType().FullName}, data: {_jsonSerializer.Serialize(context.Message)}"); }