-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove activation from message target list if constructor threw an ex…
…ception (#5960)
- Loading branch information
1 parent
65fa363
commit 6dcda70
Showing
6 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
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
12 changes: 12 additions & 0 deletions
12
test/TestGrainInterfaces/IStatelessWorkerExceptionGrain.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,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using Orleans; | ||
|
||
namespace UnitTests.GrainInterfaces | ||
{ | ||
public interface IStatelessWorkerExceptionGrain : IGrainWithIntegerKey | ||
{ | ||
Task Ping(); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Orleans; | ||
using Orleans.Concurrency; | ||
using Orleans.Runtime; | ||
using UnitTests.GrainInterfaces; | ||
|
||
|
||
namespace UnitTests.Grains | ||
{ | ||
[StatelessWorker(MaxLocalWorkers)] | ||
public class StatelessWorkerExceptionGrain : Grain, IStatelessWorkerExceptionGrain | ||
{ | ||
public const int MaxLocalWorkers = 1; | ||
|
||
public StatelessWorkerExceptionGrain() | ||
{ | ||
throw new Exception("oops"); | ||
} | ||
|
||
public Task Ping() | ||
{ | ||
return Task.CompletedTask; | ||
} | ||
} | ||
} |
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