Users Guide
VolumeNameCollection (namespace Replay.Common.Contracts.Metadata.Storage)
매개변수 System.Collections.ObjectModel.Collection<VolumeName>에서 해당 값을 상속합니다.
방법 설명
public override bool Equals(object obj)
이 인스턴스와 지정한 개체(또한
VolumeNameCollection 개체여야 함)에 동일한 값
이 있는지 확인합니다(Object.Equals(Object)
재정의).
public override int GetHashCode()
이 VolumeNameCollection에 대한 해시 코드를 반
환합니다(Object.GetHashCode() 재정의).
VolumeSnapshotInfo (namesapce Replay.Common.Contracts.Transfer)
방법 설명
public Uri BlockHashesUri { get; set;}
볼륨 블록의 MD5 해시를 읽을 수 있는 URI를 가져오거
나 설정합니다.
public Uri BlockDataUri { get; set;}
볼륨 데이터 블록을 읽을 수 있는 URI를 가져오거나 설
정합니다.
VolumeSnapshotInfoDictionary (namespace Replay.Common.Contracts.Transfer)
매개변수 System.Collections.Generic.Dictionary<VolumeName, VolumeSnapshotInfo>에서
해당 값을 상속합니다.
Pretransferscript.ps1
PreTransferScript는 스냅샷을 전송하기 전에 에이전트 쪽에서 실행됩니다.
# receiving parameter from transfer job
param([object]$TransferPrescriptParameter)
# building path to Agent's Common.Contracts.dll and loading this assembly
$regLM = [Microsoft.Win32.Registry]::LocalMachine
$regLM = $regLM.OpenSubKey('SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
\AppRecovery Agent 5')
$regVal = $regLM.GetValue('InstallLocation')
$regVal = $regVal + 'Common.Contracts.dll'
[System.Reflection.Assembly]::LoadFrom($regVal) | out-null
# Converting input parameter into specific object
$TransferPrescriptParameterObject = $TransferPrescriptParameter -as
[Replay.Common.Contracts.PowerShellExecution.TransferPrescriptParameter];
# Working with input object. All echo's are logged
if($TransferPrescriptParameterObject -eq $null) {
echo 'TransferPrescriptParameterObject parameter is null'
}
else {
echo
'TransferConfiguration:'$TransferPrescriptParameterObject.TransferConfiguration
echo 'StorageConfiguration:'
175










