public string MethodParamComplexWithReturn(MyParam param) { return($"`Name`:`{param.Name}`;\n`Message`:`{param.Message}`; \nClient ID: {Context.ConnectionId}"); }
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}"); }