Skip to content

Commit

Permalink
CommandAsync handling added to persistent actors
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynek001 committed Aug 9, 2017
1 parent 33e652e commit 741453c
Show file tree
Hide file tree
Showing 7 changed files with 2,710 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ namespace Akka.Persistence
public void PersistAsync<TEvent>(TEvent @event, System.Action<TEvent> handler) { }
protected abstract bool ReceiveCommand(object message);
protected abstract bool ReceiveRecover(object message);
protected void RunTask(System.Func<System.Threading.Tasks.Task> action) { }
public void SaveSnapshot(object snapshot) { }
protected override void Unhandled(object message) { }
}
Expand Down Expand Up @@ -480,6 +481,11 @@ namespace Akka.Persistence
protected void Command(System.Type messageType, System.Func<object, bool> handler) { }
protected void Command(System.Action<object> handler) { }
protected void CommandAny(System.Action<object> handler) { }
protected void CommandAnyAsync(System.Func<object, System.Threading.Tasks.Task> handler) { }
protected void CommandAsync<T>(System.Func<T, System.Threading.Tasks.Task> handler, System.Predicate<T> shouldHandle = null) { }
protected void CommandAsync<T>(System.Predicate<T> shouldHandle, System.Func<T, System.Threading.Tasks.Task> handler) { }
protected void CommandAsync(System.Type messageType, System.Func<object, System.Threading.Tasks.Task> handler, System.Predicate<object> shouldHandle = null) { }
protected void CommandAsync(System.Type messageType, System.Predicate<object> shouldHandle, System.Func<object, System.Threading.Tasks.Task> handler) { }
protected virtual void OnCommand(object message) { }
protected virtual void OnRecover(object message) { }
protected void Recover<T>(System.Action<T> handler, System.Predicate<T> shouldHandle = null) { }
Expand Down
Loading

0 comments on commit 741453c

Please sign in to comment.