Ejemplo n.º 1
0
 private TableCommandModel MapToAzureModel(SourcedCommand command)
 {
     return(new TableCommandModel {
         RowKey = command.CommandId.ToString(),
         PartitionKey = command.CommandId.ToString(),
         CommandTypeHint = modelSerializer.GetTypeHint(command),
         CommandJsonData = modelSerializer.Serialize(command)
     });
 }
 private TableMementoModel MapToAzureModel(Memento obj)
 {
     return(new TableMementoModel {
         PartitionKey = obj.Metadata.AggregateId,
         RowKey = obj.Metadata.AggregateId,
         MementoTypeHint = modelSerializer.GetTypeHint(obj),
         MementoJsonData = modelSerializer.Serialize(obj)
     });
 }