コード例 #1
0
        private void NewBeacon(BeaconLocation newBeacon)
        {
            var newBeacons = currentBeacons
                             .Where(_ => !_.Equals(newBeacon))
                             .Concat(new[] { newBeacon })
                             .OrderBy(_ => _.Data)
                             .ThenBy(_ => _.Address, IpEndPointComparer.Instance)
                             .ToList();
            var u = BeaconsUpdated;

            u?.Invoke(newBeacons);
            currentBeacons = newBeacons;
        }
コード例 #2
0
 protected bool Equals(BeaconLocation other)
 {
     return(Equals(Address, other.Address));
 }
コード例 #3
0
ファイル: BeaconLocation.cs プロジェクト: samiy-xx/keysndr
 protected bool Equals(BeaconLocation other)
 {
     return Equals(Address, other.Address);
 }