Skip to content

Commit 170c386

Browse files
author
Richard Russell
committed
refactor: remove debug Console.WriteLine code
1 parent 4d8ffbc commit 170c386

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Winton.Extensions.Threading.Actor/Internal/ActorTaskFactory.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ public Task StartNew(Action action, CancellationToken cancellationToken, TaskCre
1717
ActorTask.CurrentActorTaskTraits = traits;
1818
ActorTask.CurrentCanceller = cancellationTokenSource;
1919

20-
if ((taskCreationOptions & TaskCreationOptions.LongRunning) > 0)
21-
{
22-
Console.WriteLine($"LongRunning enqueue from here: {new System.Diagnostics.StackTrace()}");
23-
}
24-
2520
return Task.Factory.StartNew(
2621
actorEnqueueOptions.HasFlag(ActorEnqueueOptions.NoSuppressTransactionScope) ? action : ActorExtensions.SuppressTransactionScopeWrapper(action),
2722
cancellationTokenSource.Token,
@@ -36,11 +31,6 @@ public Task<Task> StartNew(Func<Task> asyncFunction, CancellationToken cancellat
3631
ActorTask.CurrentActorTaskTraits = traits;
3732
ActorTask.CurrentCanceller = cancellationTokenSource;
3833

39-
if ((taskCreationOptions & TaskCreationOptions.LongRunning) > 0)
40-
{
41-
Console.WriteLine($"LongRunning enqueue from here: {new System.Diagnostics.StackTrace()}");
42-
}
43-
4434
return Task.Factory.StartNew(
4535
actorEnqueueOptions.HasFlag(ActorEnqueueOptions.NoSuppressTransactionScope) ? asyncFunction : ActorExtensions.SuppressTransactionScopeWrapper(asyncFunction),
4636
cancellationTokenSource.Token,
@@ -55,11 +45,6 @@ public Task<Task<T>> StartNew<T>(Func<Task<T>> asyncFunction, CancellationToken
5545
ActorTask.CurrentActorTaskTraits = traits;
5646
ActorTask.CurrentCanceller = cancellationTokenSource;
5747

58-
if ((taskCreationOptions & TaskCreationOptions.LongRunning) > 0)
59-
{
60-
Console.WriteLine($"LongRunning enqueue from here: {new System.Diagnostics.StackTrace()}");
61-
}
62-
6348
return Task.Factory.StartNew(
6449
actorEnqueueOptions.HasFlag(ActorEnqueueOptions.NoSuppressTransactionScope) ? asyncFunction : ActorExtensions.SuppressTransactionScopeWrapper(asyncFunction),
6550
cancellationTokenSource.Token,
@@ -74,11 +59,6 @@ public Task<T> StartNew<T>(Func<T> function, CancellationToken cancellationToken
7459
ActorTask.CurrentActorTaskTraits = traits;
7560
ActorTask.CurrentCanceller = cancellationTokenSource;
7661

77-
if ((taskCreationOptions & TaskCreationOptions.LongRunning) > 0)
78-
{
79-
Console.WriteLine($"LongRunning enqueue from here: {new System.Diagnostics.StackTrace()}");
80-
}
81-
8262
return Task.Factory.StartNew(
8363
actorEnqueueOptions.HasFlag(ActorEnqueueOptions.NoSuppressTransactionScope) ? function : ActorExtensions.SuppressTransactionScopeWrapper(function),
8464
cancellationTokenSource.Token,

0 commit comments

Comments
 (0)