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, in the tMb field specify repository connection moniker within which the work with update is executed, and in the tArg.metaGet field specify the pattern to get information about update. The operation results in the moniker that will be used to set up update, and the requested information about update.
Further work is executed using the GetMbUpdate and SetMbUpdate operations.
To close the update, use the CloseMbUpdate operation.
Below is 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: