Added batching sink for Azure table storage

Hi I've added a batching sink for Azure Table Storage using your base class. Cheers for the ace project(s)!
Crumbs, you're right! I'll get these changes straightened out today.
On 29 Aug 2014 02:32, "Robert Moore" <notifications@github.com> wrote:

> In
> src/Serilog.Sinks.AzureTableStorage/Sinks/AzureTableStorage/AzureBatchingTableStorageSink.cs:
>
> > +            _table.CreateIfNotExists();
> > +        }
> > +
> > +
> > +        /// <summary>
> > +        /// Emit a batch of log events, running to completion synchronously.
> > +        /// </summary>
> > +        /// <param name="events">The events to emit.</param>
> > +        /// <remarks>Override either <see cref="PeriodicBatchingSink.EmitBatch"/> or <see cref="PeriodicBatchingSink.EmitBatchAsync"/>,
> > +        /// not both.</remarks>
> > +        protected override void EmitBatch(IEnumerable<LogEvent> events)
> > +        {
> > +            var operation = new TableBatchOperation();
> > +            foreach (var logEvent in events)
> > +            {
> > +                operation.Add(TableOperation.Insert(new LogEventEntity(logEvent, _formatProvider)));
>
> TableBatchOperation has two limitations that we need to take into account
> - the batch size must be no more than 100 and all of the items being saved
> must have the same partition key.
>
>
> http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.storage.table.tablebatchoperation.aspx
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/serilog/serilog/pull/202/files#r16878220>.
>