CalendarAggregator.Scheduler.ExistsTaskRecordForId C# (CSharp) Метод

ExistsTaskRecordForId() публичный статический Метод

public static ExistsTaskRecordForId ( string id, TaskType type ) : bool
id string
type TaskType
Результат bool
        public static bool ExistsTaskRecordForId(string id, TaskType type)
        {
            var task = FetchTaskForId(id, type);
            return (task.id == id);
        }

Usage Example

Пример #1
0
 public static void EnsureTaskRecord(string id, TaskType type)
 {
     if (Scheduler.ExistsTaskRecordForId(id, type) == false)
     {
         GenUtils.LogMsg("status", "MaybeCreateTaskRecord: creating task for " + id, null);
         Scheduler.InitTaskForId(id, type);
     }
 }