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;
 }
Beispiel #2
0
 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;
 }
Beispiel #5
0
 /// <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));
 }