예제 #1
0
파일: Repository.cs 프로젝트: prasadtad/app
 private async Task <string> CanConnectAsync(string error, Sources sources)
 {
     if ((sources == Sources.All || sources.HasFlag(Sources.File)) && !await FileProxy.CanConnectAsync())
     {
         Logger.LogError("Cannot connect to Files");
         return(error);
     }
     if ((sources == Sources.All || sources.HasFlag(Sources.Cache)) && !Cache.CanConnect())
     {
         Logger.LogError("Cannot connect to Cache");
         return(error);
     }
     return(string.Empty);
 }