Ejemplo n.º 1
0
 public override void ActivateOptions()
 {
     base.ActivateOptions();
     try
     {
         if (_logServiceContext == null)
         {
             _logServiceContext = new LogServiceContext(TableStorageAccountName, TableStorageAccountKey, TableStorageName);
         }
     }
     catch (Exception e)
     {
         ErrorHandler.Error(string.Format("{0}: Could not write log entry to {1}: {2}", GetType().AssemblyQualifiedName, TableStorageName, e.Message));
         throw;
     }
 }
Ejemplo n.º 2
0
 public AzureTableStorageAppender(ILogServiceContext logServiceContext)
 {
     _logServiceContext = logServiceContext;
 }