Exemplo n.º 1
0
 private async Task InitializeDatabaseAsync()
 {
     try
     {
         await _storageAdapter.CreateTableAsync <LogEntry>().ConfigureAwait(false);
     }
     catch (Exception e)
     {
         AppCenterLog.Error(AppCenterLog.LogTag, "An error occurred while initializing storage", e);
     }
 }
Exemplo n.º 2
0
 private async Task InitializeDatabaseAsync()
 {
     // The mutex should already be owned and the task should be started
     try
     {
         await _storageAdapter.CreateTableAsync <LogEntry>().ConfigureAwait(false);
     }
     catch (StorageException e)
     {
         MobileCenterLog.Error(MobileCenterLog.LogTag, "An error occurred while initializing storage", e);
     }
 }