Beispiel #1
0
 private IComicSourceCondition CoreGetComicSourceProviderType(ComicSourceContext ctx)
 {
     foreach (var item in this)
     {
         if (item.Condition(ctx))
         {
             return(item);
         }
     }
     return(null);
 }
Beispiel #2
0
 public IComicSourceCondition GetComicSourceProviderType(Uri targetUri)
 {
     try
     {
         var ctx = new ComicSourceContext(targetUri);
         return(CoreGetComicSourceProviderType(ctx));
     }
     catch (Exception)
     {
         return(null);
     }
 }
Beispiel #3
0
 public abstract bool Condition(ComicSourceContext context);