Esempio n. 1
0
        public void RunBeforeAnyTests()
        {
            var developerAccessProduct = new Product
            {
                SubscriptionKey = "00000000000000000000000000000000",
                RateLimit = new RateLimit
                {
                    RequestCount = 10,
                    TimeSpan = new TimeSpan(0, 0, 0, 10),
                    Timeout = new TimeSpan(0, 0, 0, 10)
                }
            };

            var cacheSettings = new CacheSettings
            {
                MetadataCacheDuration = new TimeSpan(0, 0, 10, 0),
                ProfileCacheDuration = new TimeSpan(0, 0, 10, 0),
                StatsCacheDuration = null //Don't cache 'Stats' endpoints.
            };

            var client = new HaloClient(developerAccessProduct, cacheSettings);
            Session = client.StartSession();
        }
Esempio n. 2
0
 public HaloClient(Product product, CacheSettings cacheSettings = null)
 {
     _product = product;
     _cacheSettings = cacheSettings;
 }