public static async Task<Hdc100X> Get(BusAddress busAddress) { var sensor = _sensors.GetOrAdd(busAddress, new Lazy<Hdc100X>(() => new Hdc100X(busAddress))).Value; await sensor.Initialize(); return sensor; }
public static async Task <Hdc100X> Get(BusAddress busAddress) { var sensor = _sensors.GetOrAdd(busAddress, new Lazy <Hdc100X>(() => new Hdc100X(busAddress))).Value; await sensor.Initialize(); return(sensor); }
// -- INetSerializable ------------------------------------------------- public void Serialize(NetDataWriter writer) { writer.Put(Bounds.CentreX); writer.Put(Bounds.CentreY); writer.Put(Bounds.Radius); Path.Serialize(writer); writer.PutBytesWithLength(BusAddress.GetAddressBytes()); writer.Put(BusPort); writer.Put(ApiUrl); }
public void Unsubscribe(BusAddress address, Type messageType) { throw new NotImplementedException(); }
public void Send(BusAddress destination, IMessage message) { throw new NotImplementedException(); }
private Hdc100X(BusAddress busAddress) { _busAddress = busAddress; }
private Hdc100X(BusAddress busAddress) { _busAddress = busAddress; }