Esempio n. 1
0
 internal override void SendDataToClient <T> (RemoteDataObject <T> data, bool flush, bool reportPending)
 {
     base.SendDataToClient(data, flush, reportPending);
     if (data.DataType == RemotingDataType.RemoteHostCallUsingPowerShellHost)
     {
         _writer.CompleteFeedback();
     }
 }
Esempio n. 2
0
 internal override void SendDataToClient <T> (RemoteDataObject <T> data, bool flush, bool reportPending)
 {
     base.SendDataToClient(data, flush, reportPending);
     if (data.DataType == RemotingDataType.RemoteHostCallUsingPowerShellHost)
     {
         var obj = data.Data as PSObject;
         if (obj != null)
         {
             object value = obj.Properties["mi"].Value;
             if (value != null)
             {
                 if (value.ToString().StartsWith("Prompt") || value.ToString().StartsWith("Get"))
                 {
                     _writer.CompleteFeedback();
                 }
             }
         }
     }
 }