示例#1
0
 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);
 }
示例#2
0
        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));
        }
示例#3
0
        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__);
        }
示例#4
0
        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);
        }
示例#5
0
        /// <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
        }
示例#6
0
 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
 }
示例#7
0
 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
 }
示例#8
0
 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
 }