public void PostCommit(IServiceOperationRecorderContext recorderContext) { var request = (ConfigurationDocumentRequestBase)recorderContext.Request; var data = new OperationData { Operation = "SetConfigurationDocument", DocumentName = request.DocumentKey.DocumentName, DocumentVersion = request.DocumentKey.Version.ToString(), DocumentUser = request.DocumentKey.User ?? "{application}", DocumentInstanceKey = StringUtilities.NullIfEmpty(request.DocumentKey.InstanceKey) ?? "{default}" }; var xml = JsmlSerializer.Serialize(data, "Audit"); recorderContext.Write(data.Operation, xml); }
private void Write(IServiceOperationRecorderContext recorderContext) { var xml = JsmlSerializer.Serialize(_capturedData, "Audit"); recorderContext.Write(_capturedData.Operation, xml); }