コード例 #1
0
 /// <summary>
 /// Returns true if the given type should not be written to disk when sent.
 /// </summary>
 public static bool IsExpressMessageType(Type t)
 {
     try
     {
         return(ExpressConventionCache.ApplyConvention(t, type => IsExpressMessageAction(type)));
     }
     catch (Exception ex)
     {
         throw new MessageConventionException("Failed to evaluate Express convention. See inner exception for details.", ex);
     }
 }
コード例 #2
0
 /// <summary>
 /// Returns true if the given type should not be written to disk when sent.
 /// </summary>
 /// <param name="t"></param>
 /// <returns></returns>
 public static bool IsExpressMessageType(Type t)
 {
     try
     {
         return(ExpressConventionCache.ApplyConvention(t, type => IsExpressMessageAction(type)));
     }
     catch (Exception ex)
     {
         Logger.Error("Failed to evaluate Express convention: " + ex);
         throw;
     }
 }
コード例 #3
0
 /// <summary>
 ///     Returns true if the given type should not be written to disk when sent.
 /// </summary>
 public bool IsExpressMessageType(Type t)
 {
     try
     {
         return(ExpressConventionCache.ApplyConvention(t, type =>
         {
             if (type.IsFromParticularAssembly())
             {
                 return false;
             }
             return IsExpressMessageAction(type);
         }));
     }
     catch (Exception ex)
     {
         throw new Exception("Failed to evaluate Express convention. See inner exception for details.", ex);
     }
 }