Skip to content

Commit

Permalink
Add RequestChannelException.
Browse files Browse the repository at this point in the history
  • Loading branch information
veblush committed Jun 20, 2016
1 parent 74cfcf0 commit 0c05545
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 15 additions & 0 deletions core/Akka.Interfaced-Base/Exceptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,19 @@ public RequestHaltException(string message, Exception innerException = null)
{
}
}

/// <summary>
/// This exception is thrown when the channel used for communicating with an actor has a problem.
/// </summary>
public class RequestChannelException : AkkaInterfacedException
{
public RequestChannelException()
{
}

public RequestChannelException(string message, Exception innerException = null)
: base(message, innerException)
{
}
}
}
3 changes: 1 addition & 2 deletions core/Akka.Interfaced/InterfacedActor.RequestWaiter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ namespace Akka.Interfaced
{
internal class InterfacedActorRequestWaiter
{
private int _lastRequestId;

private struct ResponseWaitingItem
{
public Action<object, ResponseMessage> ResponseHandler;
public Action<object> CancelHandler;
public object TaskCompletionSource;
}

private int _lastRequestId;
private readonly ConcurrentDictionary<int, ResponseWaitingItem> _responseWaitingItems =
new ConcurrentDictionary<int, ResponseWaitingItem>();

Expand Down

0 comments on commit 0c05545

Please sign in to comment.