예제 #1
0
        public static bool TryUnmount(this CloudDriveHelper cloudDriveHelper)
        {
            if (cloudDriveHelper != null)
            {
                try
                {
                    cloudDriveHelper.Unmount();
                    return(true);
                }
                catch (Exception ex)
                {
                    Trace.WriteLine(ex.ToString());
                }
            }

            return(false);
        }
예제 #2
0
        private static string MountCloudDrive()
        {
            var helper = new CloudDriveHelper("raven", RoleEnvironment.CurrentRoleInstance.Id + ".vhd");
            var drive = helper.MountCloudDrive();

            if (!drive.EndsWith("\\")) drive += "\\";
            return drive;
        }