public static string DatabaseName(this IEventSource source) { return(source.GetMetadata <string>(MetadataKeys.Database.Name)); }
public static int DatabaseSessionCount(this IEventSource source) { return(source.GetMetadata <int>(MetadataKeys.Database.SessionCount)); }
public static DateTimeOffset?SessionStartTimeUtc(this IEventSource source) { return(source.GetMetadata <DateTimeOffset?>(MetadataKeys.Session.StartTimeUtc)); }
public static string SessionTimeZone(this IEventSource source) { return(source.GetMetadata <string>(MetadataKeys.Session.TimeZone)); }
public static DateTimeOffset?SessionLastCommandTime(this IEventSource source) { return(source.GetMetadata <DateTimeOffset?>(MetadataKeys.Session.LastCommandTime)); }
public static string SessionLastCommandText(this IEventSource source) { return(source.GetMetadata <string>(MetadataKeys.Session.LastCommandText)); }
public static string OsVersion(this IEventSource source) { return(source.GetMetadata <string>(MetadataKeys.System.Environment.OsVersion)); }
public static string OsPlatform(this IEventSource source) { return(source.GetMetadata <string>(MetadataKeys.System.Environment.OsPlatform)); }
public static T GetMetadata <T>(this IEventSource source, string key) { return(source.GetMetadata <T>(key, CultureInfo.InvariantCulture)); }