示例#1
0
        public DefaultAppFlowImpl(IKeyValueStore store = null)
        {
            this.store = store == null?FileBasedKeyValueStore.New("AppFlowEvents") : store;

#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
            InternetStateManager.AddListener(this);
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
        }
示例#2
0
 public async Task TestInternetStateListenerOnce()
 {
     InternetStateManager.AddListener(this);
     Assert.True(await RestFactory.instance.HasInternet());
     Assert.True(await InternetStateManager.Instance(this).HasInetAsync);
     Assert.True(InternetStateManager.Instance(this).HasInet);
     Assert.True(hasInet);
     InternetStateManager.RemoveListener(this);
 }
示例#3
0
        public async Task TestInternetStateListener()
        {
            await InternetStateManager.AddListener(this);

            Assert.False(InternetStateManager.Get(this).hasInet);
            Assert.False(hasInet);
            await TaskV2.Delay(2500);

            Assert.True(hasInet);
        }
示例#4
0
        public async Task TestInternetStateListener()
        {
            InternetStateManager.AddListener(this);
            Assert.False(InternetStateManager.Instance(this).HasInet);
            Assert.False(hasInet);
            await InternetStateManager.Instance(this).HasInetAsync;

            Assert.True(InternetStateManager.Instance(this).HasInet);
            Assert.True(hasInet);
        }
示例#5
0
 public AppUpdateChecker(Action <List <UpdateEntry> > showUserUpdateInstructions)
 {
     this.showUserUpdateInstructions = showUserUpdateInstructions;
     InternetStateManager.AddListener(this);
 }
示例#6
0
 public DefaultAppFlowImpl(KeyValueStoreTypeAdapter <AppFlowEvent> store = null) : base(store)
 {
     InternetStateManager.AddListener(this);
 }