public string BuildConfiguration(FbTraceVersion version)
        {
            switch (version)
            {
            case FbTraceVersion.Version1:
                return(BuildConfiguration1());

            case FbTraceVersion.Version2:
                return(BuildConfiguration2());

            default:
                throw new ArgumentOutOfRangeException(nameof(version));
            }
        }
Beispiel #2
0
 public FbTrace(FbTraceVersion version = FbTraceVersion.Detect, string connectionString = null)
     : base(connectionString)
 {
     _version = version;
     DatabasesConfigurations = new FbDatabaseTraceConfigurationCollection();
 }
Beispiel #3
0
 public string BuildConfiguration(FbTraceVersion version)
 {
     return(string.Join(Environment.NewLine, this.Select(x => x.BuildConfiguration(version))));
 }