Beispiel #1
0
        public override void Dispose()
        {
            var stopCommand = new Command("Stop-GrainClient");

            Powershell.Commands.Clear();
            Powershell.Commands.AddCommand(stopCommand);
            Powershell.Invoke();
            Powershell.Dispose();
            Runspace.Dispose();
            base.Dispose();
        }
 /// <summary>
 /// Disposing all members which created on prepearing.
 /// </summary>
 public void Stop()
 {
     Space.Dispose();
     Powershell.Dispose();
 }