public InterceptionProcessingData(InterceptionExitModel exitModel, EngineConfiguration configuration) { this.BoundaryType = BoundaryType.Exit; this.TargetInstance = exitModel.TargetInstance; this.ReturnValue = exitModel.ReturnValue; this.Method = exitModel.Method; this.Configuration = configuration; this.VerificationFailures = new List <VerificationFailure>(); GetAttributesFromMethodBase(exitModel.Method); }
public InterceptionProcessingData(InterceptionEntryModel entryModel, EngineConfiguration configuration) { this.BoundaryType = BoundaryType.Entry; this.TargetInstance = entryModel.TargetInstance; this.MethodArgs = entryModel.MethodArgs; this.Method = entryModel.Method; this.Configuration = configuration; this.VerificationFailures = new List <VerificationFailure>(); GetAttributesFromMethodBase(entryModel.Method); }