// combine properties to create final message that will be sent
        private static LogAnalyticsMessage MergeMessageProperties(LogAnalyticsMessage item, LogAnalyticsConfiguration config, LogAnalyticsAttribute attr)
        {
            var result = new LogAnalyticsMessage
            {
                Text = FirstOrDefault(item.Text, attr.Text),
                OperationsManagementWorkspace = FirstOrDefault(item.OperationsManagementWorkspace, attr.OperationsManagementWorkspace, config.OperationsManagementWorkspace),
                OperationsManagementKey       = FirstOrDefault(item.OperationsManagementKey, attr.OperationsManagementKey, config.OperationsManagementKey),
                LogName = FirstOrDefault(item.LogName, attr.LogName, config.LogName)
            };

            return(result);
        }
 public LogAnalyticsAsyncCollector(LogAnalyticsConfiguration config, LogAnalyticsAttribute attr)
 {
     this.config = config;
     this.attr   = attr;
 }