using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Scheduler.Backgrounding
{
public static class Extensions
{
/// unique identifier, described by IntervalID + TaskBackgrounderID
public static string GetBGTaskID(this BGTaskInfo bgTEndEvent)
=> "id:" + bgTEndEvent.IntervalID + "-" + bgTEndEvent.TaskBackgrounderID;
/// unique identifier, described by IntervalID + TaskBackgrounderID
public static string GetBGTaskID(this BGTaskStartEvent bgTStartEvent)
=> "id:" + bgTStartEvent.IntervalID + "-" + bgTStartEvent.BGTaskGuid;
/// unique identifier, described by IntervalID + TaskBackgrounderID
public static string GetBGTaskID(this BGTaskEndEvent bgTEndEvent)
=> "id:" + bgTEndEvent.IntervalID + "-" + bgTEndEvent.BGTaskGuid;
/// unique identifier, described by IntervalID + TaskBackgrounderID
public static string GetBGTaskID(this BGTaskEndEvent bgTEndEvent)
=> "id:" + bgTEndEvent.IntervalID + "-" + bgTEndEvent.BGTaskGuid;
}
}