Continuously upload images on server using ssh - c#

i develop one c# windows application for Continuously upload screen shot images.
I want to run 2 or 3 process parallel without hang any other process, currently i use system.timer.thread but not work properly so please give me suggestion which technique is best to Continuously running each process.

Related

all of my .NET Console application process showing up in RAMMAP on the server with 4K Private Bytes

I have a lot of console applications that run in a scheduler every 10 mins, I see the console applications are completing successfully, all the objects in the code are closed and disposed as needed. I ran processexplorer, perfview, process monitor and was not able to identify any applications hanging around.
But I see all my applications (1000's of them) are showing up in RAMMAP process section all of them with 4K Private bytes, please see screen shot attached.
Please advise is this normal or do i have a potential leak in all my applications? any tool that can be recommended to identify/resolve this issue?
Thanks

Xamarin iOS - SignalR stops receiving messages in background mode

Currently i am developing an app which needs to be capable of receiving and interacting based on realtime event notifications from all platforms. We are using SignalR to achieve so. I am using Xamarin.Forms as this is a shared project.
Right now everything is working fine especially android is perfect. No matter application is in background or foreground its receiving messages from SignalR and playing sound and vibrates as expected. In iOS 10.3 simulator also its working as expected. Untill yesterday when i realized in real device when application goes in background mode it pauses everything and when its back in foreground it resumes as its supposed to be doing and as if the notification was sent just now. So i did some research and thought i would perform a long running task (in my case a forever loop with a 10seconds interval) in the background thread and in that way i was able to receive signalr messages (which i can see on the debugger) and vibration was playing while being in background. But after a certain time i am guessing within 10 mins iOS is clearing up its memory and when i open the app it seems reloaded because it shows the login screen instead of where i left the app.
Now question is:
1. How can i keep receiving SignalR events while being in background?
2. How can i stop iOS to reload my app due to being in background for a long time?
3. The app has to be Appstore publishable as in appstore must not reject it due to some dodgy works being done in the background like playing silent audio forever or using VoIP for background since this is not a VoIP app.
4. Also soon i am gonna be implementing location update in background mode so is this gonna keep the whole app alive in background? And behave like i am expecting?
As i am currently travelling i can not provide any code snippet but any questions please feel free to ask.
Thanks for your help and reading this boring article.
Just in case if someone is facing similar issue.
Apple doesnt allow to execute your app unless it falls in certain category Look at table 3-1. Fortunately, I had a valid reason to use continuous location update in foreground and background therefore as soon as I implemented location update event all my problems were solved immediately.
How to implement location update? Location DependencyService example for Xamarin.Forms
Hope that will help.

How to avoid blocking the screen while the app is active and downloaded files?

i do in a app in WP8 where i must downloaded a files , and saved in datebase the contents , but when i was doing test .... The files size is 17 megabytes , and scren lock , if the scren lock while the download is in progress stop it , Somebody has a idea that can i do ?
You have to use a BackgroundWorker to do the heavy job. Here's an MSDN article that will get you started: How to use a background worker for Windows Phone.
The Best thing to do in windows phone for file transfer is to use the the Background transfer API.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.backgroundtransfer%28v=vs.105%29.aspx
This will allow your app to download big data files event if your application is closed or send to the background
You can disable idle detection. You have all the information here.
Remember to turn off after download.

Control when someone tries to print

Is it possible know when someone is printing a file in Windows using c# with any visual studio library?
I have no idea if its possible and where to start...
What I wanna to do is: everytime someone tries to print a file in Windows, my c# program execute and update some information in a database.
You might take a look at PrintSpooler
Here are some examples of using it:
PrintMonitor – A C# print spooler monitor
Monitor jobs in a printer queue (.NET)
You might also run it as Windows Service, so it is always running on background and starts when system starts.

Can I turn off a screen but leave the display working for a VNC Viewer?

I have been looking around for this but I can't find out if this is possible or not. I have some software that uses Log Me In Rescue. As it stands, the software currently connects to our servers to get a pin generated by their PHP API. This pin is then sent back to the application that then posts the form with the pin in at logmein123.com. This then downloads the response application, which then runs and our Support Techs can then access the hardware, the problem is the software actively cuts control of the Windows OS behind the application: no task bar; start button or driver installation; so the software then has provide a way for our support to re-enable every thing.
So I'm looking for a way to leave the display enabled to the LogMeIn software on the tills but stop the screen from showing is there I way I can tell the screen to turn off and not stop the display from working? The hardware is powered by a Windows 7-based OS. If this is possible, could some one point me to a tutorial on how to do such a thing?

Categories

Resources