-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1047 from aksio-insurtech:fix/max-parallelism
Fix/max-parallelism
- Loading branch information
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
Source/Kernel/Grains/Workers/InvalidMaximumConcurrencyLevel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) Aksio Insurtech. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Aksio.Cratis.Kernel.Grains.Workers; | ||
|
||
/// <summary> | ||
/// Exception that gets thrown when the maximum concurrency level is invalid. | ||
/// </summary> | ||
public class InvalidMaximumConcurrencyLevel : Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="InvalidMaximumConcurrencyLevel"/> class. | ||
/// </summary> | ||
/// <param name="maxDegreeOfParallelism">The degree of parallelism configured.</param> | ||
public InvalidMaximumConcurrencyLevel(int maxDegreeOfParallelism) | ||
: base($"Invalid maximum concurrency level: {maxDegreeOfParallelism}. Must be at least 1.") | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters