public string BuildConfiguration(FbTraceVersion version) { switch (version) { case FbTraceVersion.Version1: return(BuildConfiguration1()); case FbTraceVersion.Version2: return(BuildConfiguration2()); default: throw new ArgumentOutOfRangeException(nameof(version)); } }
public FbTrace(FbTraceVersion version = FbTraceVersion.Detect, string connectionString = null) : base(connectionString) { _version = version; DatabasesConfigurations = new FbDatabaseTraceConfigurationCollection(); }
public string BuildConfiguration(FbTraceVersion version) { return(string.Join(Environment.NewLine, this.Select(x => x.BuildConfiguration(version)))); }