Esempio n. 1
0
 /// <summary>
 ///		Perform Cmdlet post-processing.
 /// </summary>
 protected sealed override void EndProcessing()
 {
     ThreadAffinitiveSynchronizationContext.RunSynchronized(
         () => EndProcessingAsync()
         );
     PowerShellSink.Instance.UnRegister(GetHashCode());
 }
Esempio n. 2
0
        /// <summary>
        ///		Perform Cmdlet pre-processing.
        /// </summary>
        protected sealed override void BeginProcessing()
        {
            PowerShellSink.Instance.Register(this);

            ThreadAffinitiveSynchronizationContext.RunSynchronized(
                () => BeginProcessingAsync()
                );
        }
Esempio n. 3
0
 /// <summary>
 ///		Perform Cmdlet processing.
 /// </summary>
 protected sealed override void ProcessRecord()
 {
     ThreadAffinitiveSynchronizationContext.RunSynchronized(
         () => ProcessRecordAsync()
         );
 }