OpenMbUpdateResult OpenMbUpdate(MbId tMb, OpenMbUpdateArg tArg)
tMb. Moniker of repository connection, inside which the work with update is executed.
tArg. Operation execution parameters.
The OpenMbUpdate operation opens the context to work with repository update.
To execute operation, specify in the tMb field repository connection moniker inside which the work with update is executed and in the tArg.metaGet field the template of getting information about update.The operation work result will be a moniker that will be used for update setting and the requested information about update.
Further work is executed with the GetMbUpdate and SetMbUpdate operations.
To close the update, use the CloseMbUpdate operation.
See below the example of context opening to work with repository objects update.The request contains repository connection moniker. Moniker for working with the update is received in the response.
{
"OpenMbUpdate" :
{
"tMb" :
{
"id" : "S1!M"
},
"tArg" : ""
}
}
{
"OpenMbUpdateResult" :
{
"id" :
{
"id" : "S1!M!S!MbUpd1"
}
}
}
public static OpenMbUpdateResult OpenUpdate(string mb)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOpen = new OpenMbUpdate()
{
tArg = new OpenMbUpdateArg(),
tMb = new MbId() { id = mb }
};
//Open update
var result = somClient.OpenMbUpdate(tOpen);
return result;
}
See also: