public void OnLoad()
        {
            _SendMenuItem.Click += (s, e) => ShareSelectedRequests();
            _ConfigureRunscope.Click += (s, e) => ConfigureRunscope();
    
            _hostAdapter.InstallConfigMenu(_ConfigureRunscope);
            _hostAdapter.InstallContextMenu(_SendMenuItem);

            _runscopeSettings = new RunscopeSettings(_hostAdapter.Preferences);

            _Client = CreateHttpClient();
        }
        public void OnLoad()
        {
            _SendMenuItem.Click      += (s, e) => ShareSelectedRequests();
            _ConfigureRunscope.Click += (s, e) => ConfigureRunscope();

            _hostAdapter.InstallConfigMenu(_ConfigureRunscope);
            _hostAdapter.InstallContextMenu(_SendMenuItem);

            _runscopeSettings = new RunscopeSettings(_hostAdapter.Preferences);

            _Client = CreateHttpClient();
        }
        public ConfigureViewModel(RunscopeSettings runscopeSettings)
        {
            _Bucket = runscopeSettings.Bucket;
            _ApiKey = runscopeSettings.ApiKey;
            _UseProxy = runscopeSettings.UseProxy;

            // Configure form uses it's own HttpClient to enable retreiving a list of buckets using the API key and then allowing the 
            // user to cancel the configure form
            _httpClient = new HttpClient()
            {
                BaseAddress = new Uri("https://api.runscope.com")
            };
            UpdateAuthHeader();
            RefreshBuckets();
        }
Example #4
0
        public ConfigureViewModel(RunscopeSettings runscopeSettings)
        {
            _Bucket   = runscopeSettings.Bucket;
            _ApiKey   = runscopeSettings.ApiKey;
            _UseProxy = runscopeSettings.UseProxy;

            // Configure form uses it's own HttpClient to enable retreiving a list of buckets using the API key and then allowing the
            // user to cancel the configure form
            _httpClient = new HttpClient()
            {
                BaseAddress = new Uri("https://api.runscope.com")
            };
            UpdateAuthHeader();
            RefreshBuckets();
        }