Esempio n. 1
0
        private void SetupSecureServiceProxy(string url, string username, string password)
        {
            _proxy = new SecureService();
            _proxy.Url = url;

            ExternalApiHeader header = new ExternalApiHeader();
            header.version = Config.Version;
            header.username = username;
            header.password = password;
            header.languageCode = Config.LanguageCode;
            _proxy.ExternalApiHeaderValue = header;
        }
Esempio n. 2
0
        private void SetupReadOnlyService(string url, string username)
        {
            _proxy = new ReadOnlyService();
            _proxy.Url = url;

            ExternalApiHeader header = new ExternalApiHeader();
            header.version = Config.Version;
            header.username = username;
            header.languageCode = Config.LanguageCode;
            _proxy.ExternalApiHeaderValue = header;
        }