OpenMbCheckSumResult OpenMbCheckSum(MbId tMb, OpenMbCheckSumArg tArg)
tMb. Repository connection moniker, which implements working with checksums.
tArg. Operation execution parameters.
The OpenMbCheckSum operation opens context for working with checksums.
To execute the operation, in the tMb field specify repository connection moniker, and in the tArg field specify empty value. The operation results in the moniker for working with checksums. Further work is executed using the GetMbCheckSum and SetMbCheckSum operations. To close the context for working with checksums, use the CloseMbCheckSum operation.
Below is the example of opening context for working with checksums. The request contains repository connection moniker. The response contains moniker for working with checksums.
{
"OpenMbCheckSum" :
{
"tMb" :
{
"id" : "S1!M"
},
"tArg" : ""
}
}
{
"OpenMbCheckSumResult" :
{
"id" :
{
"id" : "S1!M!S!MbCheckSum1"
}
}
}
public static OpenMbCheckSumResult OpenCheckSum(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOp = new OpenMbCheckSum()
{
tMb = new MbId() { id = moniker },
tArg = new OpenMbCheckSumArg()
};
// Open context for working with checksums
var result = somClient.OpenMbCheckSum(tOp);
return result;
}
See also: