private async void CheckBridgeStatus()
{
status.Text = "Starting up bridge...";
try
{
var config = new BridgeConfiguration(GetDeviceID(), "com.dotMorten.TestApp")
{
// The following are optional. If not set will be pulled from the package information and system information
ModelName = "AllJoyn Mock DSB",
DeviceName = "AllJoyn Simulator",
ApplicationName = "AllJoyn Device Simulator",
Vendor = "MockDevices Inc"
};
await AllJoynDsbServiceManager.Current.StartAsync(config);
status.Text = ""; // Bridge Successfully Initialized
addDeviceBox.IsEnabled = true;
}
catch (System.Exception ex)
{
status.Text = "Bridge failed to initialize:\n" + ex.Message;
return;
}
LoadDevices();
}