示例#1
0
 public string MethodParamComplexWithReturn(MyParam param)
 {
     return($"`Name`:`{param.Name}`;\n`Message`:`{param.Message}`; \nClient ID: {Context.ConnectionId}");
 }
示例#2
0
 public void MyMethodParameterComplex(MyParam param)
 {
     Clients.All.handlerMyMethodParameterComplex($"{nameof(MyMethodParameterComplex)} was invoked @{DateTime.Now}.\nName: {param?.Name}\nMessage: {param?.Message}.\n Client ID: {Context.ConnectionId}");
 }