/// <summary> /// Receives a message /// </summary> /// <remarks> /// This should be called in the application start file if you want it to live for the entire scope of the application /// </remarks> /// <typeparam name="T1">The type of 1st parameter</typeparam> /// <typeparam name="T2">The type of 2nd parameter</typeparam> /// <typeparam name="T3">The type of 3rd parameter</typeparam> /// <typeparam name="T4">The type of 4th parameter</typeparam> /// <typeparam name="T5">The type of 5th parameter</typeparam> /// <typeparam name="T6">The type of 6th parameter</typeparam> /// <typeparam name="T7">The type of 7th parameter</typeparam> /// <typeparam name="T8">The type of 8th parameter</typeparam> /// <param name="signalR">The instance of the ISignalR interface</param> /// <param name="url">The name of the url to the hub</param> /// <param name="context">The name of the context that was invoked</param> /// <param name="method">A function to execute upon being called</param> public static Task Receive <T1, T2, T3, T4, T5, T6, T7, T8>(ISignalR signalR, string url, string context, Action <T1, T2, T3, T4, T5, T6, T7, T8> method) => signalR.Receive(url, context, method);
/// <summary> /// Receives a message /// </summary> /// <remarks> /// This should be called in the application start file if you want it to live for the entire scope of the application /// </remarks> /// <typeparam name="T1">The type of 1st parameter</typeparam> /// <typeparam name="T2">The type of 2nd parameter</typeparam> /// <param name="signalR">The instance of the ISignalR interface</param> /// <param name="url">The name of the url to the hub</param> /// <param name="context">The name of the context that was invoked</param> /// <param name="method">A function to execute upon being called</param> public static Task Receive <T1, T2>(ISignalR signalR, string url, string context, Action <T1, T2> method) => signalR.Receive(url, context, method);