public new bool ShouldProcess([NotNull] string verboseDescription, [NotNull] string verboseWarning, [NotNull] string caption, out ShouldProcessReason shouldProcessReason) { var workItem = new MarshalItemFuncOut <string, string, string, bool, ShouldProcessReason>( base.ShouldProcess, verboseDescription, verboseWarning, caption); AsyncCmdletSynchronizationContext.PostItem(workItem); return(workItem.WaitForResult(out shouldProcessReason)); }
new public bool ShouldProcess([NotNull] string verboseDescription, [NotNull] string verboseWarning, [NotNull] string caption, out ShouldProcessReason shouldProcessReason) { var workItem = new MarshalItemFuncOut <string, string, string, bool, ShouldProcessReason>( base.ShouldProcess, verboseDescription, verboseWarning, caption); this.workItems.Add(workItem); return(workItem.WaitForResult(out shouldProcessReason)); }