/// <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); } }
/// <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; } }
/// <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); } }