public override Undo.Server.Task onCreateTask(Undo.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "TaskManager.onCreateTask called", "Undo.Server.TaskManager"); /// TODO: add your code here return(null); }
public override Undo.Server.Task onCreateTask(Undo.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "TaskManager.onCreateTask called", "Undo.Server.TaskManager"); var id = IdGenerator.GetNextId(); return(new Task(id, false, "Do something [" + id + "]", _undoService)); }
public override void onAddTask(Undo.Server.Task task__, Undo.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "TaskManager.onAddTask called", "Undo.Server.TaskManager"); var undoObject = task__.CreateUndoObject(); _undoService.AddInsert(Id, undoObject, Tasks.Count, "Adding new Task", client__.Id); Tasks.Add(task__); }
public override void onRemoveTask(int id__, Undo.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "TaskManager.onRemoveTask called", "Undo.Server.TaskManager"); var toBeDeleted = Tasks.First(t => t.Id == id__); var index = Tasks.IndexOf(toBeDeleted); var undoObject = toBeDeleted.CreateUndoObject(); _undoService.AddRemove(Id, undoObject, index, "Removing Task [" + toBeDeleted.Id + "]", client__.Id); Tasks.RemoveAt(index); }
/// <summary> /// a client disconnected /// </summary> /// <param name="client"> /// the representation of this client /// </param> public override void onClientDisconnect(Undo.Server.Client client) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "APlayServer.onClientDisconnect called", "Undo.Server.APlayServer"); /// TODO: add your code here }
public override void onRemoveTask(int id__, Undo.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "TaskManager.onRemoveTask called", "Undo.Server.TaskManager"); /// TODO: add your code here }
public override void onAddSubTask(Undo.Server.Task task__, Undo.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "Task.onAddSubTask called", "Undo.Server.Task"); /// TODO: add your code here }
public override void onSetTaskDescription(String description__, Undo.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "Task.onSetTaskDescription called", "Undo.Server.Task"); /// TODO: add your code here }