public MainPage() { InitializeComponent(); _gateAccessorData = new GateAccessorData(_messageCollection); GateMessagesView.ItemsSource = _gateMessages.Messages; //_serviceClientLazy = new ResettableLazy<ServiceClient>(() => // ServiceClient.CreateFromConnectionString(_gateAccessorData.IoTHubConnectionString)); InitGetDeviceStatusAsync(); }
public SettingsPage(GateAccessorData gateAccessorData) { _gateAccessorData = gateAccessorData; BindingContext = _gateAccessorData; InitializeComponent(); }