Exemplo n.º 1
0
        /// <inheritdoc/>
        public Task MarkMessageAsPublishedAsync(string id, AbstractMessage message)
        {
            var entity = new DynamicTableEntity(id, message.Id, "*", new Dictionary <string, EntityProperty>
            {
                { IsPublishedColumnName, new EntityProperty(true) },
            });

            return(tableProxy.ExecuteAsync(TableOperation.Merge(entity)));
        }
Exemplo n.º 2
0
        /// <summary>
        /// InsertCommand.
        /// </summary>
        /// <param name="command">Command to Save.</param>
        /// <returns>Simple Task.</returns>
        public Task SaveAsync(ICommand command)
        {
            var operation = TableOperation.Insert(command.ToStoreCommand());

            return(tableProxy.ExecuteAsync(operation));
        }