diff --git a/src/GitHub.Api/Tasks/ActionTask.cs b/src/GitHub.Api/Tasks/ActionTask.cs index 73692baea..d42a9d1ff 100644 --- a/src/GitHub.Api/Tasks/ActionTask.cs +++ b/src/GitHub.Api/Tasks/ActionTask.cs @@ -7,7 +7,7 @@ namespace GitHub.Unity { - class TaskQueue : TPLTask + public class TaskQueue : TPLTask { private TaskCompletionSource aggregateTask = new TaskCompletionSource(); private readonly List queuedTasks = new List(); @@ -85,7 +85,7 @@ private void TaskFinished(bool success, Exception ex) } } - class TaskQueue : TPLTask> + public class TaskQueue : TPLTask> { private TaskCompletionSource> aggregateTask = new TaskCompletionSource>(); private readonly List> queuedTasks = new List>(); @@ -190,7 +190,7 @@ private void TaskFinished(TTaskResult result, bool success, Exception ex) } } - class TPLTask : TaskBase + public class TPLTask : TaskBase { private Task task; @@ -235,7 +235,7 @@ protected override void Run(bool success) } } - class TPLTask : TaskBase + public class TPLTask : TaskBase { private Task task; @@ -280,7 +280,7 @@ protected override T RunWithReturn(bool success) } } - class ActionTask : TaskBase + public class ActionTask : TaskBase { protected Action Callback { get; } protected Action CallbackWithException { get; } @@ -329,7 +329,7 @@ protected override void Run(bool success) } } - class ActionTask : TaskBase + public class ActionTask : TaskBase { private readonly Func getPreviousResult; @@ -415,7 +415,7 @@ protected virtual void Run(bool success, T previousResult) public T PreviousResult { get; set; } = default(T); } - class FuncTask : TaskBase + public class FuncTask : TaskBase { protected Func Callback { get; } protected Func CallbackWithException { get; } @@ -468,7 +468,7 @@ protected override T RunWithReturn(bool success) } } - class FuncTask : TaskBase + public class FuncTask : TaskBase { protected Func Callback { get; } protected Func CallbackWithException { get; } @@ -513,7 +513,7 @@ protected override TResult RunWithData(bool success, T previousResult) } } - class FuncListTask : DataTaskBase> + public class FuncListTask : DataTaskBase> { protected Func> Callback { get; } protected Func, List> CallbackWithSelf { get; } @@ -573,7 +573,7 @@ protected override List RunWithReturn(bool success) } } - class FuncListTask : DataTaskBase> + public class FuncListTask : DataTaskBase> { protected Func> Callback { get; } protected Func> CallbackWithException { get; } diff --git a/src/GitHub.Api/Tasks/TaskBase.cs b/src/GitHub.Api/Tasks/TaskBase.cs index 99d169152..768c011d5 100644 --- a/src/GitHub.Api/Tasks/TaskBase.cs +++ b/src/GitHub.Api/Tasks/TaskBase.cs @@ -547,7 +547,7 @@ public override string ToString() public virtual string Message { get; set; } } - abstract class TaskBase : TaskBase, ITask + public abstract class TaskBase : TaskBase, ITask { private event Action finallyHandler; @@ -723,7 +723,7 @@ protected override void CallFinallyHandler() public TResult Result { get { return result; } } } - abstract class TaskBase : TaskBase + public abstract class TaskBase : TaskBase { private readonly Func getPreviousResult; @@ -770,7 +770,7 @@ protected virtual TResult RunWithData(bool success, T previousResult) public T PreviousResult { get; set; } = default(T); } - abstract class DataTaskBase : TaskBase, ITask + public abstract class DataTaskBase : TaskBase, ITask { public DataTaskBase(CancellationToken token) : base(token) @@ -783,7 +783,7 @@ protected void RaiseOnData(TData data) } } - abstract class DataTaskBase : TaskBase, ITask + public abstract class DataTaskBase : TaskBase, ITask { public DataTaskBase(CancellationToken token) : base(token) diff --git a/src/GitHub.Api/Tasks/TaskExtensions.cs b/src/GitHub.Api/Tasks/TaskExtensions.cs index 57e17170d..fa634aaa9 100644 --- a/src/GitHub.Api/Tasks/TaskExtensions.cs +++ b/src/GitHub.Api/Tasks/TaskExtensions.cs @@ -4,7 +4,7 @@ namespace GitHub.Unity { - static class TaskExtensions + public static class TaskExtensions { public static async Task StartAwait(this ITask source, Action handler = null) {