示例#1
0
 void IInstrumentable.Write(IInstrumentationWriter writer)
 {
     writer.Write("Id", Id);
     writer.Write("Definition", Definition);
     writer.Write("AffiliateId", AffiliateId);
     writer.Write("To", To);
     writer.Write("From", From);
 }
示例#2
0
 void IInstrumentable.Write(IInstrumentationWriter writer)
 {
     writer.Write("TinyId", TinyId);
     writer.Write("WebSite", WebSite);
     writer.Write("UserId", UserId);
     writer.Write("Definition", Definition);
     writer.Write("MimeType", MimeType);
     writer.Write("VerticalId", VerticalId);
     writer.Write("LongUrl", LongUrl);
     writer.Write("ContextId", ContextId);
     writer.Write("Instance", Instance);
 }
示例#3
0
 void IInstrumentable.Write(IInstrumentationWriter writer)
 {
     foreach (var mappings in _mappings.Values)
     {
         foreach (var mapping in mappings)
         {
             writer.Write(mapping);
         }
     }
 }
示例#4
0
        public static void This(Action action, string operation)
        {
            var sw = Stopwatch.StartNew();

            action();
            sw.Stop();

            if (_writer != null)
            {
                _writer.Write(operation, sw.Elapsed);
            }
        }
示例#5
0
 void IInstrumentable.Write(IInstrumentationWriter writer)
 {
     writer.Write("Address", _address);
     writer.Write("DisplayName", _displayName);
 }
示例#6
0
 public void Dispose()
 {
     _sw.Stop();
     _writer?.Write(_opName, _sw.ElapsedTicks);
 }