public static void Loop(this DisquuunInput input, Func <DisqueCommand, DisquuunResult[], bool> Callback) { var socket = input.socketPool.ChooseAvailableSocket(); var commands = new DisqueCommand[] { input.command }; socket.Loop(commands, input.data, Callback); }
public static void Async(this DisquuunInput input, Action <DisqueCommand, DisquuunResult[]> Callback) { var socket = input.socket; socket.Async( input.command, input.data, (command, resultBytes) => { Callback(command, resultBytes); return(false); } ); }
public static void Async(this DisquuunInput input, Action <DisqueCommand, DisquuunResult[]> Callback) { var socket = input.socketPool.ChooseAvailableSocket(); var commands = new DisqueCommand[] { input.command }; socket.Async( commands, input.data, (command, resultBytes) => { Callback(command, resultBytes); return(false); } ); }
public static DisquuunResult[] DEPRICATED_Sync(this DisquuunInput input) { var socket = input.socketPool.ChooseAvailableSocket(); return(socket.DEPRECATED_Sync(input.command, input.data)); }
public static void Loop(this DisquuunInput input, Func <DisqueCommand, DisquuunResult[], bool> Callback) { var socket = input.socket; socket.Loop(input.command, input.data, Callback); }
public static DisquuunResult[] DEPRICATED_Sync(this DisquuunInput input) { var socket = input.socket; return(socket.DEPRECATED_Sync(input.command, input.data)); }