Exemple #1
0
        /// <summary>
        /// Writes to log.
        /// </summary>
        /// <param name="message">The message to write.</param>
        /// <param name="path">The path of the file.</param>
        public async Task WriteToLog(Message[] messages, string connectionString)
        {
            TableStorageAdapter tableStorageAdapter = new TableStorageAdapter(connectionString);

            // ToDo dynamical name
            await tableStorageAdapter.ExcuteBatchOperationToTable("logMessages", messages).ConfigureAwait(false);
        }
Exemple #2
0
        private static async Task TableOutput(Shared.Model.Message[] messages, StorageEndpointConfiguration configItem)
        {
            TableStorageAdapter tableStorageAdapter = new TableStorageAdapter(configItem.ConnectionString);

            await tableStorageAdapter.ExcuteBatchOperationToTable(configItem.Name, messages).ConfigureAwait(false);
        }