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);
     }
 }