Example #1
0
 public override IObservable <Beacon> WhenBeaconRanged(BeaconRegion region)
 => this.Scan().Where(region.IsBeaconInRegion);
Example #2
0
        public override async Task StartMonitoring(BeaconRegion region)
        {
            await this.Repository.Set(region.Identifier, region);

            this.manager.StartMonitoring(region.ToNative());
        }
Example #3
0
        public override async Task StopMonitoring(BeaconRegion region)
        {
            await this.Repository.Remove <BeaconRegion>(region.Identifier);

            this.manager.StopMonitoring(region.ToNative());
        }
Example #4
0
 public BeaconRegionStatus(BeaconRegion region)
 {
     this.Region = region;
 }
 public abstract Task StopMonitoring(BeaconRegion region);
 public abstract IObservable <Beacon> WhenBeaconRanged(BeaconRegion region);
Example #7
0
 public override Task StartMonitoring(BeaconRegion region)
 => this.Repository.Set(region.Identifier, region);
Example #8
0
        public override async Task StartMonitoring(BeaconRegion region)
        {
            await this.Repository.Set(region.Identifier, region);

            this.SetRegion(region);
        }