protected override void BeginProcessing() { /*Type Runner = ClassResolver.ResolveAssemblyCmdClassByName(CmdClassName, Assembly.GetCallingAssembly()); if (Runner == null) { Runner = ClassResolver.ResolveAssemblyCmdClassByName(CmdClassName, Assembly.GetAssembly(typeof(CmdInterface))); } if (!typeof(CmdInterface).IsAssignableFrom(Runner)) { throw new ArgumentException("The supplied class name (argument 1) is not of type " + typeof(CmdInterface).FullName + "!"); }*/ CmdRunner PCR = new CmdRunner( NumberOfThreads, CmdClass, //(CmdInterface)Activator.CreateInstance(Runner), CmdArguments ); PCR.Start(); Thread.Sleep(WaitTime); PCR.Stop(); WriteObject(PCR.Results); }