Comments (3)
I was able to reproduce the behavior of the RobotApp application from current project:
1.Deploy the RobotApp (Debug mode)
2. Run RobotServer
3. Run RobotApp
4. Wait for connection with RobotServer
5. Minimize RobotApp window… - disconnection in 2-3 seconds.
When I started both projects from VS IDE, RobotApp stayed connected even being minimized.
Win10x64 +VS2017.
from opc-ua-samples.
I not sure if I agree with Microsoft on this one, but an App is placed in Suspended state when minimized.
See the first part of this blog post: the-lifecycle-of-a-uwp-app
In 'app.xaml.cs', you can try removing this code:
public async override Task OnSuspendingAsync(object s, SuspendingEventArgs e, bool prelaunchActivated)
{
await this.container.Resolve<PLC1Session>().SuspendAsync();
}
public override void OnResuming(object s, object e, AppExecutionState previousExecutionState)
{
this.container.Resolve<PLC1Session>().Resume();
}
from opc-ua-samples.
Andrew!
Thanks for the pointing the disconnection reason. Unfortunately, removing the code above did not help. I will think on workaround for this.
from opc-ua-samples.
Related Issues (20)
- UWP app rebuild issue in Visual Studio 2015 HOT 2
- Can we send live data dump to Sql Server from PLC HOT 4
- Timing at application startup HOT 1
- Fetch Live data from method HOT 15
- Server certificate rejected HOT 2
- How to make these parameter can modify HOT 4
- [RobotApp] XAML Designer crashing caused by AlarmConditionToStringConverter (VS2017) HOT 5
- OPC UA Example of website HOT 6
- OPC UA samples for opc-ua client 2.0.0* prerelease HOT 8
- Get node id, node name (tag name) in data change notification HOT 4
- Get the nodeid corresponding to Tag name and vice versa HOT 6
- Can use thingsboard connect your UA server? HOT 24
- Keep checking if the opc server is connected HOT 1
- Node monitoring reliability HOT 4
- Unable to connect to RobotServer using ConsoleApp due to Certificate issue HOT 4
- How does the initial reconnect work? HOT 1
- Workstation.RobotApp Exception in Windows.UI.Xaml.dll code 0xc000027b HOT 1
- Why does this throw "LocalPrivateKey is null" HOT 2
- Wpf on .NET 5 HOT 1
- Workstation.RobotServer with MonitoringMode.Sampling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opc-ua-samples.