Esempio n. 1
0
        public new bool ShouldContinue([NotNull] string query, [NotNull] string caption)
        {
            var workItem = new MarshalItemFunc <string, string, bool>(base.ShouldContinue, query, caption);

            AsyncCmdletSynchronizationContext.PostItem(workItem);
            return(workItem.WaitForResult());
        }
Esempio n. 2
0
        public new bool ShouldProcess([NotNull] string target, [NotNull] string action)
        {
            var workItem = new MarshalItemFunc <string, string, bool>(base.ShouldProcess, target, action);

            AsyncCmdletSynchronizationContext.PostItem(workItem);
            return(workItem.WaitForResult());
        }
Esempio n. 3
0
        public new bool TransactionAvailable()
        {
            var workItem = new MarshalItemFunc <bool>(base.TransactionAvailable);

            AsyncCmdletSynchronizationContext.PostItem(workItem);
            return(workItem.WaitForResult());
        }
Esempio n. 4
0
        public new bool ShouldContinue([NotNull] string query, [NotNull] string caption, ref bool yesToAll, ref bool noToAll)
        {
            var workItem = new MarshalItemFuncRef <string, string, bool, bool, bool>(base.ShouldContinue, query, caption,
                                                                                     yesToAll, noToAll);

            AsyncCmdletSynchronizationContext.PostItem(workItem);
            return(workItem.WaitForResult(ref yesToAll, ref noToAll));
        }
Esempio n. 5
0
        public new bool ShouldProcess([NotNull] string verboseDescription, [NotNull] string verboseWarning, [NotNull] string caption)
        {
            var workItem = new MarshalItemFunc <string, string, string, bool>(base.ShouldProcess, verboseDescription,
                                                                              verboseWarning, caption);

            AsyncCmdletSynchronizationContext.PostItem(workItem);
            return(workItem.WaitForResult());
        }
Esempio n. 6
0
        public new bool ShouldProcess(string verboseDescription, string verboseWarning, 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));
        }
Esempio n. 7
0
 public new void WriteCommandDetail([NotNull] string text)
 {
     AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction <string>(base.WriteCommandDetail, text));
 }
Esempio n. 8
0
 public new void WriteWarning([NotNull] string text)
 {
     AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction <string>(base.WriteWarning, text));
 }
Esempio n. 9
0
 public new void WriteProgress([NotNull] ProgressRecord progressRecord)
 {
     AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction <ProgressRecord>(base.WriteProgress, progressRecord));
 }
Esempio n. 10
0
 public new void WriteObject([CanBeNull] object sendToPipeline, bool enumerateCollection)
 {
     AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction <object, bool>(base.WriteObject, sendToPipeline, enumerateCollection));
 }
Esempio n. 11
0
 public new void WriteObject([CanBeNull] object sendToPipeline)
 {
     AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction <object>(base.WriteObject, sendToPipeline));
 }
Esempio n. 12
0
 public new void WriteError([NotNull] ErrorRecord errorRecord)
 {
     AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction <ErrorRecord>(base.WriteError, errorRecord));
 }
Esempio n. 13
0
 public new void WriteDebug([CanBeNull] string text)
 {
     AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction <string>(base.WriteDebug, text));
 }
Esempio n. 14
0
        public new void WriteVerbose(string text)
        {
            var workItem = new MarshalItemAction <string>(base.WriteVerbose, text);

            AsyncCmdletSynchronizationContext.PostItem(workItem);
        }
Esempio n. 15
0
 public new void ThrowTerminatingError(ErrorRecord errorRecord)
 {
     AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction <ErrorRecord>(base.ThrowTerminatingError, errorRecord));
 }