Method
Description
public override bool Equals(object obj)
Determines whether this instance and a specified
object, which must also be a
VolumeNameCollection
object, have the same
value. (Overrides
Object.Equals(Object)
.)
public override int GetHashCode()
Returns the hash code for this
VolumeNameCollection
. (Overrides
Object.GetHashCode()
.)
Table 11. VolumeSnapshotInfo (namesapce Replay.Common.Contracts.Transfer)
Method
Description
public Uri BlockHashesUri { get; set;}
Gets or sets the URI at which the MD5 hashes of
volume blocks can be read.
public Uri BlockDataUri { get; set;}
Gets or sets the URI at which the volume data
blocks can be read.
VolumeSnapshotInfoDictionary (namespace Replay.Common.Contracts.Transfer)
Inherits its values from the parameter,
System.Collections.Generic.Dictionary<VolumeName,
VolumeSnapshotInfo>
.
Pretransferscript.ps1
The
PreTransferScript
is executed on the agent side prior to transferring a snapshot.
# 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 = $ '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:'
$TransferPrescriptParameterObject.StorageConfiguration
}
Posttransferscript.ps1
The
PostTransferScript
is executed on the agent side after transferring a snapshot.
# receiving parameter from transfer job
param([object] $TransferPostscriptParameter)
168