Owners Manual

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() を上書きし
ます)
11. 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:'
181