private void WriteProgress(string name) { ProgressRecord record = new ProgressRecord(0, ProgressDescription, name); AssemblyCacheProvider provider = PscxProviderContext <AssemblyCacheProvider> .Current; provider.WriteProgress(record); }
private void WriteProgressCompleted() { ProgressRecord record = new ProgressRecord(0, ProgressDescription, Properties.Resources.Completed); record.RecordType = ProgressRecordType.Completed; AssemblyCacheProvider provider = PscxProviderContext <AssemblyCacheProvider> .Current; provider.WriteProgress(record); }