/// <summary> /// Returns true, if expected command has been sent by client. /// </summary> public static bool Request <T>(AppJson appJson, CommandEnum command, out CommandJson commandJson, out T componentJson) where T : ComponentJson { bool result = false; commandJson = appJson.RequestJson.CommandGet(); componentJson = (T)null; if (command == commandJson.CommandEnum) { result = true; componentJson = (T)appJson.Root.RootComponentJsonList[commandJson.ComponentId]; } return(result); }
public static Result Process(CommandJson command) { PostgreSQLAdapter.command = command; return(Connect()); }
public static Result Process(CommandJson command) { FirebirdAdapter.command = command; return(Connect()); }
private async Task HandleMessage(CommandJson data) { var handler = _handlers[data.CommandName]; await handler(new StringReader(data.Command)); }
public static Result Process(CommandJson command) { OracleAdapter.command = command; return(Connect()); }