protected override Collection <PSDriveInfo> InitializeDefaultDrives() { NewDriveDynamicParameters(); try{ var result = new Collection <PSDriveInfo>(); var drive = new PSDriveInfo( "TMX", ProviderInfo, @"TMX\TmxProvider::\", "This is the TMX root drive", null); rootDrive = new TmxDriveInfo(drive); result.Add(rootDrive); return(result); } catch (Exception e) { WriteVerbose(e.Message); WriteVerbose("TmxProvider::InitializeDefaultDrives()"); return(null); } }
protected override void Stop() { this.rootDrive = null; }
protected override Collection<PSDriveInfo> InitializeDefaultDrives() { NewDriveDynamicParameters(); try{ var result = new Collection<PSDriveInfo>(); var drive = new PSDriveInfo( "TMX", ProviderInfo, @"TMX\TmxProvider::\", "This is the TMX root drive", null); rootDrive = new TmxDriveInfo(drive); result.Add(rootDrive); return result; } catch (Exception e) { WriteVerbose(e.Message); WriteVerbose("TmxProvider::InitializeDefaultDrives()"); return null; } }
protected override void Stop() { rootDrive = null; }