Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 3
0
 void IInstrumentable.Write(IInstrumentationWriter writer)
 {
     foreach (var mappings in _mappings.Values)
     {
         foreach (var mapping in mappings)
         {
             writer.Write(mapping);
         }
     }
 }
Esempio n. 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);
            }
        }
Esempio n. 5
0
 void IInstrumentable.Write(IInstrumentationWriter writer)
 {
     writer.Write("Address", _address);
     writer.Write("DisplayName", _displayName);
 }
Esempio n. 6
0
 public void Dispose()
 {
     _sw.Stop();
     _writer?.Write(_opName, _sw.ElapsedTicks);
 }