public void Start() { _properties = (PropertyDictionary)DiContainer.Instance.Resolve(typeof(PropertyDictionary)); DiContainer.Instance.Register(typeof(INetworkAdapter), typeof(NeonWifiDevice)).AsSingleton(); _wifi = (NeonWifiDevice)DiContainer.Instance.Resolve(typeof(INetworkAdapter)); Thread.Sleep(2000); //TODO: Get this, the node id, Verdant server, etc., from EWR. Need to create a settings service. _wifi.Connect("CloudGate", "Escal8shun"); _sntpClient = new SntpClient(_wifi, "time1.google.com"); _sntpClient.SetTime(); _properties.SetProperty(PropertyNames.IPAddressPropName, _wifi.StationIPAddress.ToString()); }
public ReportingAgent() { _properties = (PropertyDictionary)DiContainer.Instance.Resolve(typeof(PropertyDictionary)); }
public DisplayAgent() { _lcd = (ICharacterLcdDriver)DiContainer.Instance.Resolve(typeof(ICharacterLcdDriver)); _properties = (PropertyDictionary)DiContainer.Instance.Resolve(typeof(PropertyDictionary)); }