Centennial App for hosting AllJoyn device system bridge#9
Centennial App for hosting AllJoyn device system bridge#9sanjaiganesh wants to merge 8 commits intotjaffri:developfrom
Conversation
|
The main files that you would care are below. Rest are details. Startup Task: AllJoyn/Platform/BridgeHostStartupTask/Program.cs Test app: |
AllJoyn/Platform/Bridge.sln
Outdated
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||
| # Visual Studio 14 | ||
| VisualStudioVersion = 14.0.24720.0 | ||
| # Visual Studio 15 |
There was a problem hiding this comment.
We probably shouldn't force everyone to upgrade to a prerelease version of VS. Or is it needed for some reason? #Closed
There was a problem hiding this comment.
There was a problem hiding this comment.
But it opens in VS 14 as well. So no issue as such.
In reply to: 75178273 [](ancestors = 75178273,75173869)
There was a problem hiding this comment.
Fix other flavors also? #Closed Refers to: AllJoyn/Platform/Bridge/ScriptAdapterLibUW/ScriptAdapterLibUW.vcxproj:140 in e5c638c. [](commit_id = e5c638c, deletion_comment = False) |
| appServiceConnection = appServiceDetails.AppServiceConnection; | ||
| appServiceConnection.RequestReceived += AppServiceConnection_RequestReceived; | ||
| appServiceConnection.ServiceClosed += AppServiceConnection_ServiceClosed; | ||
| } |
There was a problem hiding this comment.
Consider refactoring all the app service related code into a separate class, maybe called AllJoynAppService. All the event handlers here as well as some other helper methods could be moved over. In my experience App.xaml.cs tends to get very cluttered if you don't take care to delegate responsibilities. #Closed
There was a problem hiding this comment.
shall leave it like this for now and consider refactoring later.
In reply to: 75184136 [](ancestors = 75184136)
There was a problem hiding this comment.
|
🕐 |
#Resolved In reply to: 240497696 [](ancestors = 240497696) Refers to: AllJoyn/Platform/Bridge/ScriptAdapterLibUW/ScriptAdapterLibUW.vcxproj:140 in e5c638c. [](commit_id = e5c638c, deletion_comment = False) |
For detailed info, refer to README.md in BridgeHost project. Below is the summary.
There are two parts in the centennial app
App service stores info (DeviceInfo) about previously onboarded devices in the application data, organized in the following application data container hierarchy.
This data gets deleted upon uninstall. Ideally, corresponding cloud service should store this information which app can sync to.
That will ensure devices appear on the bus even after uninstall/install and not required to be onboarded again.
The name of the child containers to 'OnboardedDevices' container is generated using (app service)client provided 'Category' (in valueset) concatenated with device ID.
This should change per final design.
This data is used when gets activated upon startup (logon) and onboards those devices.
The Ultimate effect is, user sees the devices (on AJ bus), even after restarting the machine. This is the magic we want.
Console or client app can come and onboard new devices and go. But Bridge/App services stays alive.
Startup task has the health check (does every 5 seconds) and starts app service if not UP.