public static void Send(string query, System.Action <ClientTansport <TType> > before) { ClientTansport <TType> c = new ClientTansport <TType>(query); if (before != null) { c.BeforeSend += before; } else { System.Console.WriteLine("Send without before send handler"); } c.Send(); }
public static void Send(string query, EventHandler <ClientTansport <TType> > before) { ClientTansport <TType> c = new ClientTansport <TType>(query); if (before != null) { c.BeforeSend += before; } else { Console.LogError("Send without before send handler"); } c.Send(); }