Exemplo n.º 1
0
        public void CanSetCustomMaxBeaconRecordAgeForAppMon()
        {
            // given
            var        target       = new AppMonOpenKitBuilder(Endpoint, AppID, DeviceID);
            const long maxRecordAge = 123456L;

            // when
            var obtained = target.WithBeaconCacheMaxRecordAge(maxRecordAge);
            var config   = target.BuildConfiguration().BeaconCacheConfig;


            // then
            Assert.That(obtained, Is.InstanceOf <AppMonOpenKitBuilder>());
            Assert.That((AppMonOpenKitBuilder)obtained, Is.SameAs(target));
            Assert.That(config.MaxRecordAge, Is.EqualTo(maxRecordAge));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Sets the maximum beacon age of beacon data in cache.
 /// </summary>
 /// <param name="maxBeaconAgeInMilliseconds">The maximum beacon age in milliseconds, or unbounded if negative.</param>
 /// <returns><code>this</code></returns>
 public AppMonOpenKitBuilderVB WithBeaconCacheMaxRecordAge(long maxBeaconAgeInMilliseconds)
 {
     wrappedBuilder.WithBeaconCacheMaxRecordAge(maxBeaconAgeInMilliseconds);
     return(this);
 }