Below is the example of using the OpenAuditLog operation to open the access protocol with the list of operations within the specified repository connection. The request contains moniker of opened repository connection and a key of the session, within which operations are executed with objects. The response contains the moniker of the access protocol instance that contains records of operations executed with objects.
{
"OpenAuditLog" :
{
"tMb" :
{
"id" : "S1!M"
},
"tArg" :
{
"logType" : "Operations",
"session" : "76206"
}
}
}
{
"OpenAuditLogResult" :
{
"id" : "S1!M!S!A2"
}
}
public static OpenAuditLogResult OpenAuditOperations(string mb, ulong sessyonKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOpenAudit = new OpenAuditLog()
{
tArg = new OpenAuditLogArg()
{
logType = AuditLogType.Operations,
session = sessyonKey
},
tMb = new MbId() { id = mb }
};
//Open access protocol with list of operations executed
//within the specified repository connection
var result = somClient.OpenAuditLog(tOpenAudit);
return result;
}
See also: