Ejemplo n.º 1
0
        public new bool TransactionAvailable()
        {
            var workItem = new MarshalItemFunc <bool>(base.TransactionAvailable);

            AsyncCmdletSynchronizationContext.PostItem(workItem);
            return(workItem.WaitForResult());
        }
Ejemplo 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());
        }
Ejemplo n.º 3
0
        new public bool ShouldProcess([NotNull] string target, [NotNull] string action)
        {
            var workItem = new MarshalItemFunc <string, string, bool>(base.ShouldProcess, target, action);

            this.workItems.Add(workItem);
            return(workItem.WaitForResult());
        }
Ejemplo n.º 4
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());
        }
Ejemplo n.º 5
0
        new public bool TransactionAvailable()
        {
            var workItem = new MarshalItemFunc <bool>(base.TransactionAvailable);

            this.workItems.Add(workItem);
            return(workItem.WaitForResult());
        }
Ejemplo n.º 6
0
        new public bool ShouldContinue([NotNull] string query, [NotNull] string caption)
        {
            var workItem = new MarshalItemFunc <string, string, bool>(base.ShouldContinue, query, caption);

            this.workItems.Add(workItem);
            return(workItem.WaitForResult());
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Writes a message for debug level.
        /// </summary>
        /// <param name="target">The target.</param>
        /// <returns></returns>
        new public bool ShouldProcess(string target)
        {
            var workItem = new MarshalItemFunc <string, bool>(base.ShouldProcess, target);

            this._workItems.Add(workItem);
            return(workItem.WaitForResult());
        }
Ejemplo n.º 8
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());
        }
Ejemplo n.º 9
0
        new public bool ShouldProcess([NotNull] string verboseDescription, [NotNull] string verboseWarning, [NotNull] string caption)
        {
            var workItem = new MarshalItemFunc <string, string, string, bool>(base.ShouldProcess, verboseDescription,
                                                                              verboseWarning, caption);

            this.workItems.Add(workItem);
            return(workItem.WaitForResult());
        }