public static IInteractionBuffer IsValid(ISpecification specification, IInteractionContext ic, IInteractionBuffer buf) { IEnumerable<IValidatingInteractionAdvisor> facets = specification.GetFacets().Where(f => f is IValidatingInteractionAdvisor).Cast<IValidatingInteractionAdvisor>(); foreach (IValidatingInteractionAdvisor advisor in facets) { buf.Append(advisor.Invalidates(ic)); } return buf; }
private static IInteractionBuffer IsUsable(ISpecification specification, IInteractionContext ic, IInteractionBuffer buf) { IEnumerable<IDisablingInteractionAdvisor> facets = specification.GetFacets().Where(f => f is IDisablingInteractionAdvisor).Cast<IDisablingInteractionAdvisor>(); foreach (IDisablingInteractionAdvisor advisor in facets) { buf.Append(advisor.Disables(ic)); } return buf; }
public static IInteractionBuffer IsValid(ISpecification specification, IInteractionContext ic, IInteractionBuffer buf) { IEnumerable <IValidatingInteractionAdvisor> facets = specification.GetFacets().Where(f => f is IValidatingInteractionAdvisor).Cast <IValidatingInteractionAdvisor>(); foreach (IValidatingInteractionAdvisor advisor in facets) { buf.Append(advisor.Invalidates(ic)); } return(buf); }
private static IInteractionBuffer IsUsable(ISpecification specification, IInteractionContext ic, IInteractionBuffer buf) { IEnumerable <IDisablingInteractionAdvisor> facets = specification.GetFacets().Where(f => f is IDisablingInteractionAdvisor).Cast <IDisablingInteractionAdvisor>(); foreach (IDisablingInteractionAdvisor advisor in facets) { buf.Append(advisor.Disables(ic)); } return(buf); }