Skip to content

Commit f74ccc1

Browse files
committed
- fixes
1 parent dd6a93d commit f74ccc1

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Shuttle.Core.Threading/ProcessorThread.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Threading;
33
using Shuttle.Core.Configuration;
4+
using Shuttle.Core.Contract;
45
using Shuttle.Core.Logging;
56
using Shuttle.Core.Reflection;
67

@@ -21,6 +22,8 @@ public class ProcessorThread : IThreadState
2122

2223
public ProcessorThread(string name, IProcessor processor)
2324
{
25+
Guard.AgainstNull(processor, nameof(processor));
26+
2427
_name = name;
2528
_processor = processor;
2629

Shuttle.Core.Threading/ProcessorThreadPool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public ProcessorThreadPool(string name, int threadCount, IProcessorFactory proce
2020
{
2121
Guard.AgainstNull(processorFactory, nameof(processorFactory));
2222

23-
if (_threadCount < 1)
23+
if (threadCount < 1)
2424
{
2525
throw new ThreadCountZeroException();
2626
}

0 commit comments

Comments
 (0)