コード例 #1
0
		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);
		}
コード例 #2
0
        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);
        }
コード例 #3
0
        private void Write(IServiceOperationRecorderContext recorderContext)
        {
            var xml = JsmlSerializer.Serialize(_capturedData, "Audit");

            recorderContext.Write(_capturedData.Operation, xml);
        }
コード例 #4
0
		private void Write(IServiceOperationRecorderContext recorderContext)
		{
			var xml = JsmlSerializer.Serialize(_capturedData, "Audit");
			recorderContext.Write(_capturedData.Operation, xml);
		}