public static SqlServerConfiguration Configuration() { var section = ShuttleConfigurationSection.Open <SqlServerSection>("sqlServer"); var configuration = new SqlServerConfiguration(); if (section != null) { configuration.SubscriptionManagerConnectionStringName = section.SubscriptionManagerConnectionStringName; configuration.IdempotenceServiceConnectionStringName = section.IdempotenceServiceConnectionStringName; configuration.ScriptFolder = section.ScriptFolder; } return(configuration); }
protected ServiceBusSection GetServiceBusSection(string file) { return(ShuttleConfigurationSection.Open <ServiceBusSection>("serviceBus", string.Format(@".\ServiceBusSection\files\{0}", file))); }
public static SqlServerSection Open(string file) { return(ShuttleConfigurationSection.Open <SqlServerSection>("sqlServer", file)); }
protected ServiceBusSection GetServiceBusSection(string file) { return(ShuttleConfigurationSection.Open <ServiceBusSection>("serviceBus", Path.Combine(AppDomain.CurrentDomain.BaseDirectory, string.Format(@".\ServiceBusSection\files\{0}", file)))); }