public MainPage()
        {
            InitializeComponent();

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