예제 #1
0
파일: Setup.cs 프로젝트: baLR0n/HaloSharp
        public void RunBeforeAnyTests()
        {
            var developerAccessProduct = new Product
            {
                SubscriptionKey = "00000000000000000000000000000000",
                RateLimit = new RateLimit
                {
                    RequestCount = 10,
                    TimspSpan = new TimeSpan(0, 0, 0, 10),
                    Timeout = new TimeSpan(0, 0, 0, 10)
                }
            };

            var client = new HaloClient(developerAccessProduct);
            Session = client.StartSession();
        }
예제 #2
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();
        }
예제 #3
0
 public HaloClient(Product product, CacheSettings cacheSettings = null)
 {
     _product = product;
     _cacheSettings = cacheSettings;
 }
예제 #4
0
 public HaloClient(Product product)
 {
     _product = product;
 }