public Task <T> Invoke <T>(string destination, string method, params object[] args) { try { Log.Invoke(destination, method); return(_client.InvokeAsync <T>("my-rtmps", destination, method, args)); } catch (InvocationException e) { Log.Error("Invocation Exception: {0}", e); return(null); } }
public Task <T> InvokeAsync <T>(string destination, string method, params object[] argument) { return(rtmpClient.InvokeAsync <T>("my-rtmps", destination, method, argument)); }
private static Task <T> InvokeAsync <T>(RtmpClient client, string destination, string method, params object[] argument) { return(client.InvokeAsync <T>("my-rtmps", destination, method, argument)); }