private VuelingEnvironment LoadCurrentConfig() { if (!VuelingEnvironment.IsInitialized) { var errorMessage = string.Format("VuelingEnvironment not initialized in {0}.", GetType().FullName); Trace.TraceError(errorMessage); throw new ConfigurationInitializationException(errorMessage); } VuelingEnvironment.InitializeLibrary("Vueling.XXX.Library"); return(VuelingEnvironment.Current); }
private VuelingEnvironment LoadCurrentConfig() { if (!VuelingEnvironment.IsInitialized) { var errorMessage = string.Format("VuelingEnvironment not initialized in {0}.", this.GetType().FullName); Trace.TraceError(errorMessage); throw new ConfigurationInitializationException(errorMessage); } VuelingEnvironment.InitializeLibrary("Poc.Rabbitmq.Balancer.WindowsService"); return(VuelingEnvironment.Current); }