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); }
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); }
void IInstrumentable.Write(IInstrumentationWriter writer) { foreach (var mappings in _mappings.Values) { foreach (var mapping in mappings) { writer.Write(mapping); } } }
public static void This(Action action, string operation) { var sw = Stopwatch.StartNew(); action(); sw.Stop(); if (_writer != null) { _writer.Write(operation, sw.Elapsed); } }
void IInstrumentable.Write(IInstrumentationWriter writer) { writer.Write("Address", _address); writer.Write("DisplayName", _displayName); }
public void Dispose() { _sw.Stop(); _writer?.Write(_opName, _sw.ElapsedTicks); }