Beispiel #1
0
 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);
 }
Beispiel #2
0
 public static ITracedScope SetType(this ITracedScope tracedScope, string type)
 {
     tracedScope.SetProperty(LayerTypeKey, type);
     return(tracedScope);
 }
Beispiel #3
0
 public static ITracedScope SetUniqueValue(this ITracedScope tracedScope, string key)
 {
     return(tracedScope.SetProperty(key, Guid.NewGuid().ToString("N")));
 }
Beispiel #4
0
 public static ITracedScope SetName(this ITracedScope tracedScope, string name)
 {
     tracedScope.SetProperty(LayerNameKey, name);
     return(tracedScope);
 }