CQRSMicroservices.ServiceFabric.AggregateRootActor.AggregateRootActor.ExecuteOn C# (CSharp) Method

ExecuteOn() public method

public ExecuteOn ( string aggregateRootType, string command ) : System.Threading.Tasks.Task
aggregateRootType string
command string
return System.Threading.Tasks.Task
    public async Task ExecuteOn(string aggregateRootType, string command)
    {
      var aggregateRoot = LoadAggregateRoot(aggregateRootType);
      aggregateRoot.Handle(Deserialize(command));
      await SaveAndDispatchEvents(aggregateRoot);
    }