static MemoryCacheService() { //System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(@"c:\temp\debug.log")); //BasicHttpBinding basicHttpbinding = new BasicHttpBinding(BasicHttpSecurityMode.None); //basicHttpbinding.Name = "BasicHttpBinding_IConfigurationService"; //basicHttpbinding.MessageEncoding = WSMessageEncoding.Mtom; //basicHttpbinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None; //basicHttpbinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName; //EndpointAddress endpointAddress = new EndpointAddress("http://biooffice/WcfSiteConfigurationService/ConfigurationService.svc"); //configurationServiceClient = new ConfigurationServiceClient(basicHttpbinding, endpointAddress); //System.Diagnostics.Debug.WriteLine("kuku", "DEBUG2::"); //System.Diagnostics.Debug.Close(); //configurationServiceClient = new ConfigurationService(); //configurationServiceClient = new ConfigurationService(); //System.Diagnostics.Debug.WriteLine("kuku2", "DEBUG2::"); //System.Diagnostics.Debug.Close(); var client = new ConfigurationService(); foreach (KeyValuePair<string, string> kvp in client.AppSettings()) { _settings.Add(kvp.Key, kvp.Value); } foreach (var kvp in client.ConnectionStrings()) { _settings.Add(kvp.Key, kvp.Value); } }
static DataService() { var client = new ConfigurationService(); foreach (KeyValuePair<string, string> kvp in client.AppSettings()) { _settings.Add(kvp.Key, kvp.Value); } foreach (var kvp in client.ConnectionStrings()) { _settings.Add(kvp.Key, kvp.Value); } }