Quartz Scheduler stops working when web page is Idle - asp.net-mvc

When web page is loaded scheduler starts working just fine but when there is no task running in web page or when web page is in idle state the Quartz Scheduler stops working.

To resolve this follow the below steps:
Open IIS server
Go to Application Pools
Select the Application Pool of your app
Click on Advanced Settings on the right panel.
Inside the Advance Settings pop up set "Idle Time-out (minutes)" to 0.

Related

Disable all service workers if not in pwa mode

We have an angular webapp which should work offline only if used as standalone web app (pwa), but not in the "normal" browser mode. Only very few users need the offline feature, but when angular pwa is enabled, all users will get the "last cached" version of the app and we have to display an alert and reload the page if there are software updates (which happens quite often).
We want the website to ignore all service workers, only when used as installed standalone web app the service workers should drop in.
Is that possible? I could not find any solution so far.
I found a solution myself:
it works, by setting the enabled flag conditionally:
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: environment.production &&
(navigator['standalone'] || window.matchMedia('(display-mode: standalone)').matches),
}),

Azure SignalR understanding connection count

I am a bit confused with the Azure SignalR connection count. When I run my MVC.NET on my Visual Studio debug mode, it immediately creates 10 server connections. So, I carefully looked at the documentation (https://learn.microsoft.com/en-us/azure/azure-signalr/signalr-concept-messages-and-connections) and it said that
By default, each application server starts with five initial connections per hub, and each client has one client connection.
For example, assume that you have two application servers and you define five hubs in code. The server connection count will be 50: 2 app servers * 5 hubs * 5 connections per hub.
Well using the formula above, I should only have 5 connections because: 1 app server * 1 hub * 5 connections per hub = 5 connections. I can't understand why my portal showed that I have 10 server connections instead of 5.
Can anyone help to explain how Azure calculates the server connection?
Thanks...
UPDATE
For those who looking on how to enable Live Trace Tools:
Go to SignalR
Click on the SignalR that you want to trace
Click on Monitoring | Diagnostic Settings
If you haven't configure your log, click on "Configure Log Destination Settings" (Note: I think the cheapest way is to store under your storage account with retention of 1 day).
Tick Enable Live Trace and click Save
Open Live Trace Tool (it should say "Connected" on the top right corner)
Click on Capture
Start your app
Go to Diagnostics Settings under Monitoring tab in Azure portal SignalR service.
Click on "Open Live Trace Tool" button.
Click on Capture in newly opened window.
When you run your application, all connections would be shown in Live Trace.

Angular Service Worker Detect Cache Completed

I'm Using Angular service worker for offline caching, Most of the time the app will be used in offline mode only, so on initial app launch i want to display 'Application ready to use' snack bar once the caching is completed, to make sure all the background caching is completed and the application is fully ready to take offline. Is there an option to detect the caching complete process? because i couldn't find anything in the official documentation and googling also didn't help.

integrating paypal with a single page web app on IPAD-safari, communicating between tabs

i have a web app on html5 and running on a single page, lots of Ajax and javascript, so everything takes place on a single page.
Payment takes place with paypal digital good express which on desktop opens on the same tab without opening a separate page. It all works great on desktop, running all on 1 single html5 page.
On iPAD the problem is that paypal digital goods express opens on a separate tab. And i need to find a way to communicate after payment with the previous tab where the app is running.
Because after successful payment the single page web app immediately runs a new key process.
On iPAD i cannot start that process because paypal opens on a separate tab and once payment completes successfully there , i dont know how to send a signal to the javascript code of the previous tab.
I guess the main tab of the web app could be polling the server for news, but that seems rather inefficient considering how easy it is on desktop
i appreciate very much any help :)

Communication Handling using Service in Blackberry 4.5

I am developing an app. (like google talk) which at phone boot-up starts a background service which is continuously running. This service interacts with UI (means any request to server is first sent from UI to service & from service to server) & any response is sent to UI through service.
What i know to start background service at boot up is "Create an alternate entry point and use that to start the background service. "
right click the project properties then go to Application tab, then check "Auto run on startup" / "System Module"
is it right?
In Android u can achieve this Service using system-defined Service class. How to achieve this in Blackberry 4.5? I want to do it (UI & Service) in one project.
Any solution?
Thanks for the reply.
I got a link for
"How To - Setup an alternate entry point for my application"
is it the right solution for starting Service?
I want the app. like email app. which will notify u when an incoming mail comes (like even though ur main application is minimized then also ur service is running in background which will continuously check for any incoming mail & will notify the main UI application through any app icon change)
So for this is there any class like Service class which will start at boot-up or "Setup an alternate entry point for my main UI application" is the only solution for this?
Thanks for the reply..
I read this GlobalEveltListener & tried for handling the communication between the 2 apps (Service app. & UI app.) by starting the Service at auto-startup.
I m using the "Persistent Store" & accessing it in both the apps. But the Persistent Store name should be unique otherwise it gives "Linker error: Cannot start the Service app. as Persistent Store is multiply defined." But I have to access the Persistent Store the both the apps to make some database calls.
So now i m trying for handling the Service by putting both apps in one project. So that the Persistent Store will be unique.
How to achieve this communication between Service & UI in one project?
You only need an alternate entry point if you want the program to behave in both the service mode, starting at boot and running in the background; and in application mode, having an icon in the home screen that the user can click to begin interacting with your software. In that case you need to have an entry point that tells the program "you are starting automatically at boot up", and one that tells the program "you are starting in response to user interaction".
There are other ways to handle this. If your application makes itself available to the user through ApplicationMenus, then you make the one and only entry point "Auto Run" and "System Module" so that it starts on boot, registers the menus and does not display an icon.
You can also use one entry point set to "Auto Run" but not a system module so the icon is displayed and detect the start on boot case using the ApplicationManager.inStartup() method.
The method you describe does work well for the type of application you are developing. It simplifies the initialization by allowing you to specify different arguments to the program in each entry point.
Please see the answer I have given earlier to a different question here. This essentially is an IPC mechanism between two running processes.

Resources