public static ITracedScope SetDbCommandParameters(this ITracedScope tracedScope, DbCommand command) { tracedScope.SetProperty("sqlcommand text size", command.CommandText.Length * sizeof(char)); tracedScope.SetProperty("sqlcommand text", command.CommandText); tracedScope.SetProperty("sqlcommand type", command.CommandType.ToString()); return(tracedScope); }
public static ITracedScope SetType(this ITracedScope tracedScope, string type) { tracedScope.SetProperty(LayerTypeKey, type); return(tracedScope); }
public static ITracedScope SetUniqueValue(this ITracedScope tracedScope, string key) { return(tracedScope.SetProperty(key, Guid.NewGuid().ToString("N"))); }
public static ITracedScope SetName(this ITracedScope tracedScope, string name) { tracedScope.SetProperty(LayerNameKey, name); return(tracedScope); }