static LegacyProvider()
        {
            WSHttpBinding wsHttpBinding = new WSHttpBinding()
            {
                Security = new WSHttpSecurity()
                {
                    Mode = SecurityMode.Message,
                    Message =
                    {
                        ClientCredentialType = MessageCredentialType.Windows
                    }
                }
            };

            EndpointAddress endpoint = new EndpointAddress(VirtualPathUtility.AppendTrailingSlash(DebuggerConfig.Instance.CMS.Url) + "webservices/CoreService2011.svc/wsHttp");
            ChannelFactory<core.ICoreService> clientFactory = new ChannelFactory<core.ICoreService>(wsHttpBinding, endpoint)
            {
                Credentials =
                {
                    Windows =
                    {
                        ClientCredential = CredentialCache.DefaultNetworkCredentials
                    }
                }
            };

            // Initialize the CoreServiceClient
            mCoreServiceClient = clientFactory.CreateChannel();
        }
        static LegacyProvider()
        {
            WSHttpBinding wsHttpBinding = new WSHttpBinding()
            {
                Security = new WSHttpSecurity()
                {
                    Mode    = SecurityMode.Message,
                    Message =
                    {
                        ClientCredentialType = MessageCredentialType.Windows
                    }
                }
            };

            EndpointAddress endpoint = new EndpointAddress(VirtualPathUtility.AppendTrailingSlash(DebuggerConfig.Instance.CMS.Url) + "webservices/CoreService2011.svc/wsHttp");
            ChannelFactory <core.ICoreService> clientFactory = new ChannelFactory <core.ICoreService>(wsHttpBinding, endpoint)
            {
                Credentials =
                {
                    Windows              =
                    {
                        ClientCredential = CredentialCache.DefaultNetworkCredentials
                    }
                }
            };

            // Initialize the CoreServiceClient
            mCoreServiceClient = clientFactory.CreateChannel();
        }