public static bool TryUnmount(this CloudDriveHelper cloudDriveHelper) { if (cloudDriveHelper != null) { try { cloudDriveHelper.Unmount(); return(true); } catch (Exception ex) { Trace.WriteLine(ex.ToString()); } } return(false); }
private static string MountCloudDrive() { var helper = new CloudDriveHelper("raven", RoleEnvironment.CurrentRoleInstance.Id + ".vhd"); var drive = helper.MountCloudDrive(); if (!drive.EndsWith("\\")) drive += "\\"; return drive; }