Questions tagged [application-state]

Use this tag for questions related to the Application State; an application can be at the active state, for example.

99 questions
0
votes
2 answers

Store Dictionary object in ApplicationState Vs putting it in Web.config

I need to store a Dictionary in my asp .net application. This dictionary is basically a straight mapping of keys (strings) to values (strings). During the life of the Application the dictionary will not change and will contain about 10 elements. I…
Icarus
  • 63,293
  • 14
  • 100
  • 115
0
votes
1 answer

Application state asp.net

I have written below code in Application_Start() method of global.asax file. In this code i am saving a list by the name allowedLogTypes in the Application state Application["user"] = 0; List allowedLogTypes = new…
Slow Death
  • 31
  • 3
0
votes
3 answers

Storing classes in Application State (ASP.NET)

Let's say I wish to store an instance of the following in Application State, to be accessed very often. public class Example { public string A; public string B; public bool C; public int D; // ... } I can't decide whether to store the…
James
  • 7,343
  • 9
  • 46
  • 82
0
votes
1 answer

Use async pipe to show Observable data retrieved from the Application State

I have code that gets data from the Application State and then show data inside component.html. component.ts myData$: Observable; ngOnInit() { this.myData$ = this.myStore.select(fetchMyData); // here I get a code and I use it to…
Matt
  • 265
  • 4
  • 17
0
votes
1 answer

Application variables get lost after post-back

My ASP.Net application has a Server Control developed by us which needs to store some keys in the Application level (i.e. across users and sessions) for future use. However, I found that the count neither of Page.Application and…
William X
  • 6,751
  • 6
  • 31
  • 50
0
votes
0 answers

How to perform a task when notification arrives and app is in terminated/killed state without any user interaction in iOS?

I am trying to achieve one functionality in which I want to send one message to the server when I am receiving push notification but the app is in the terminated or killed state, and I also don't want user to tap on the notification or any other…
0
votes
1 answer

How to save app state(custom object, Vector, Object) on runtime?

I am a new developer for Android and searching about how to save custom object as persistent data. How can I save an object and restore it ? I've researched several methods such as onSaveInstanceState and onRestoreInstanceState. But there is no…
Ferdinand
  • 1,193
  • 4
  • 23
  • 43
0
votes
1 answer

Why is View State, Session and Application state considered bad for a web app?

Read it many times on StackOverflow and C# corner. Just wondering why? If it is a bad practice then what are the alternatives. Apologies if I'm being naive, I've just started with web development.
user7654913
0
votes
2 answers

How to let one user get another user's location when other user's app is inactive? (Swift/Firebase)

I'm trying to implement a feature where one user that's linked as friends with another user can request to locate that other user even if their app is inactive. Looking around I found this article showing how to update location using PushKit, but…
0
votes
1 answer

Preventing invalid state when dealing with related entities

Consider a (ReactJS) application where a Group and User entity are related to each other by a many-to-many relationship. The state tree looks like this: { groups: { "1": {id: "1", name: "..."}, ... }, users: { "42": {id: "42",…
Willem-Aart
  • 2,200
  • 2
  • 19
  • 27
0
votes
0 answers

Wrong stack behavior on first application run (before restart)

I am trying to understand some behavior of the android apps, now that I faced the following issue : After device restart my app launches by default, but with one issue : If I put it in the background, and I try to resume it from HOME launcher, it…
Ionut J. Bejan
  • 734
  • 11
  • 28
0
votes
1 answer

Events through application scope to multiple clients?

First of all, I am creating a something like a client/server solution using a standard ASP.NET website - I do know this method is not adviced, and most people would love to scream "COMET!" or "HTML5 Sockets!" - but please don't ;-) ! What I am…
Lars Holdgaard
  • 9,496
  • 26
  • 102
  • 182
0
votes
2 answers

Keep program running in background ios

I am working on an application which allows to send messages to another user. If I press Home Button app goes first in background and then in suspended state so I don't receive any message unless I bring app back to the foreground. How can I fix…
RuLoViC
  • 825
  • 7
  • 23
0
votes
1 answer

How to check java application status (Running or stopped) running on a windows server

I have a java jar running on windows server 2012 r2. I have created a task to run this jar on every restart of the server. Now, I need to restart the application whenever its stopped because of some reason. So I should find a way to find the status…
0
votes
1 answer

ios application single app mode state variables and variables defined are nil

We have an app that reads data from bluetooth devices and posts the reading back to an ios application. Based on the readings we calculate various parameters and maintain the health data of the patient. We are designing our application to function…
user2122350
  • 53
  • 2
  • 7