private InteractionContext(InteractionType interactionType, ISession session, bool programmatic, INakedObjectAdapter target, IIdentifier id, INakedObjectAdapter proposedArgument, INakedObjectAdapter[] arguments) { this.interactionType = interactionType; this.programmatic = programmatic; this.id = id; this.session = session; this.target = target; this.proposedArgument = proposedArgument; proposedArguments = arguments; }
private InteractionContext(InteractionType interactionType, ISession session, bool programmatic, INakedObject target, IIdentifier id, INakedObject proposedArgument, INakedObject[] arguments) { this.interactionType = interactionType; this.programmatic = programmatic; this.id = id; this.session = session; this.target = target; this.proposedArgument = proposedArgument; proposedArguments = arguments; }
/// <summary> /// Convenience to allow implementors of <see cref="IValidatingInteractionAdvisor" /> etc to determine /// if the interaction's type applies. /// </summary> public bool TypeEquals(InteractionType other) { return InteractionType.Equals(other); }
protected InteractionException(IInteractionContext ic, string message) : base(message) { interactionType = ic.InteractionType; identifier = ic.Id; target = ic.Target; }
/// <summary> /// Convenience to allow implementors of <see cref="IValidatingInteractionAdvisor" /> etc to determine /// if the interaction's type applies. /// </summary> public bool TypeEquals(InteractionType other) { return(InteractionType.Equals(other)); }