예제 #1
0
 protected void CheckBlacklisted(Ommel.FileType type, string why)
 {
     //if (IsBlacklisted(type)) throw new BlacklistedFileTypeException(Key, type, why);
 }
예제 #2
0
 protected bool IsBlacklisted(Ommel.FileType type)
 {
     return((WhitelistedFileTypes.Count > 0 && !WhitelistedFileTypes.Contains(type)) || BlacklistedFileTypes.Contains(type));
 }
예제 #3
0
 public BlacklistedFileTypeException(string name, Ommel.FileType ftype, string why) : base($"You are not allowed to use operation '{name}' on files of type '{ftype}' - {why}")
 {
 }