// begin-snippet: argument_models_notify_with_model public void Notify( NotificationArgs notificationArgs, DryRunOptions dryRunOptions, VerbosityOptions verbosityOptions) { // send notification }
// begin-snippet: argument_models_notify_with_interceptor public Task <int> Interceptor(InterceptorExecutionDelegate next, CommandContext ctx, DryRunOptions dryRunOptions, VerbosityOptions verbosityOptions) { IEnumerable <IArgumentModel> models = ctx.InvocationPipeline.All .SelectMany(s => s.Invocation.FlattenedArgumentModels); return(next()); }