예제 #1
0
 protected override PSDriveInfo NewDrive(PSDriveInfo drive)
 {
     var c8drive = new C8DriveInfo(drive);
     return c8drive;
 }
예제 #2
0
 protected override Collection<PSDriveInfo> InitializeDefaultDrives()
 {
     C8DriveInfo newC8DriveInfo;
     try
     {
         newC8DriveInfo = new C8DriveInfo("C8Local", this.ProviderInfo, "ccl://localhost:6789", "", null);
     }
     catch (Exception)
     {
         return null;
     }
     Collection<PSDriveInfo> drives = new Collection<PSDriveInfo>() { newC8DriveInfo };
     return drives;
 }