/// <summary> /// Caller must have already established lock and is on background thread /// </summary> /// <param name="task"></param> private static AdditionalDataTasks UpdateTaskHelper(DataItemTask task) { _conn.InsertOrReplace(task); if (OnTaskUpdated != null) { OnTaskUpdated(null, task); } ToastHelper.HandleOnTaskUpdated(task); var additional = new AdditionalDataTasks(); additional.ResetPrimaryTileTask = ResetPrimaryTileWorker.Instance.Start(); return(additional); }