Questions tagged [app-startup]

Concerns that are a focus of application startup include configuration, startup time optimization, locking/threading/race conditions, preconditions, and configuration changes.

Application startup concerns include:

  • Configuration (e.g., database connection strings, SMTP server names, etc.)
  • Startup time optimization
  • Locking/threading/race conditions
  • Checking preconditions (e.g., presence of required folders / files, security checks)
  • Handling of configuration changes (i.e., whether the application has to be redeployed / recompiled / restarted)
176 questions
1
vote
1 answer

Can I create an object from the DI container/Lamar in .NET 6.0 minimal hosting, preserving singletons?

We have migrated from a windows Framework 4.7 application to .NET 6.0. Lamar is added for Dependency Injection. We are trying to finalize a refactor to the latest "one-file" program.cs but are getting unexpected System.ObjectDisposedException:…
1
vote
1 answer

Angular Service does not reach .NET Core API service

I have an application running on .NET Core 3.1 on the back-end and Angular/Angular Materials 12 on the front-end and an OKTA Authentication integration with Angular/.NET Core. Since I updated the angular code from Angular 9 to 12 and implemented…
Alex
  • 443
  • 3
  • 18
1
vote
0 answers

Is It possible to inject dependencies after winservice starts?

I have ASP.NET Core 3.1 WebAPI that can be started as winservice. public class Program { public static async Task Main(string[] args) { IHostBuilder builder = CreateHostBuilder(args); if (isService) { …
TanyaMy
  • 55
  • 1
  • 6
1
vote
0 answers

Read an app setting in my .Net 5 application without using DI

I created an MVC application using .Net 5. Then I created a custom Attribute should read some settings from appsettings.json. Here a working solution: public class MyCustomAttribute : Attribute { public MyCustomAttribute(string key) :…
Simone
  • 2,304
  • 6
  • 30
  • 79
1
vote
1 answer

Cold Start and Warm Start difference in Android

As per the official Android documentation : Cold Start - "in cases such as your app’s being launched for the first time since the device booted, or since the system killed the app" Warm Start - "The system evicts your app from memory, and then the…
Vishu Gupta
  • 611
  • 5
  • 10
1
vote
2 answers

URLRewrite middleware that depends on Config dependency injection/scoped service. .Net Core

Struggling a little with Dependency Injection/Scoped Services with a rewrite rule class. I have a redirects class which implements IRule class ActivateRedirects : IRule { public void ApplyRule(RewriteContext context) { // Do…
Jamie Hartnoll
  • 7,231
  • 13
  • 58
  • 97
1
vote
0 answers

System.Net.NetworkInformation.NetworkInformationException: The system cannot find the file specified

My site works in local. However, when I launch it on azure, I get an error as below. I used graph api and OwinStartup. using Microsoft.Owin; using Owin; [assembly: OwinStartup(typeof(graph_tutorial.Startup))] namespace graph_tutorial { public…
1
vote
0 answers

Is there a way to measure a netcore webAPI server (Krestel) start-up time?

I need to document the startup/shutdown time of my self-hosted WebAPI server. This is required as there are lot of configuration file readings going on during startup. I couldn't find any way to measure this as the it somewhere happens inside this…
1
vote
2 answers

Wait until app starts after onLaunch with firebase messaging and flutter

I am building an app with flutter and firebase cloud messaging. In onLounch method I have some beahviuorSubjects which triggering redirects and data refresh. However they are not working because they fire before somebody listens. I do not want to…
1
vote
1 answer

Enable/Disable StartupTask in C#

I would like to ask for some suggestions on how I can make the following below possible: Functionality wanted: I want to give users the option to enable and disable the startup setting for a desktop bridge application I am building while the…
someuser193
  • 55
  • 10
1
vote
1 answer

OWIN Startup class not detected

I was trying to implement OWIN WS Federation in an existing application. It's a web application in asp .net VB. I have added all the references from the Nugetpackages List of refernces added Then I added the startup class in 2 files as a Partial…
swaroop
  • 11
  • 3
1
vote
0 answers

Unable to Launch VLC Application in Debian Buster

I have setup debian on a newly built machine. I have installed XFCE4 DE. I also installed VLC but I am unable to launch it. My environment details: uname -a returns Linux debianNew 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64…
Adam A R
  • 29
  • 5
1
vote
0 answers

How to fix IllegalAccessError related to Rejecting re-init on previously-failed class androidx.core.view.ViewCompat

Im developing an android app and when i start the main activity in a device or emulator, appears this error in logcat. How can i fix this? PD: Recently, i read the following link and it seems that, apart of being related, is not resolved in a short…
Marlon López
  • 460
  • 8
  • 21
1
vote
1 answer

Angular startup time: when I develop my angular 6 application in watch mode, it takes long time to load

Angular startup time: when I develop my angular 6 application in watch mode, it takes long time to load. I can’t afford the longer load time on every save. How can I cut down this time so I can be more productive?
blogs4t
  • 2,329
  • 5
  • 20
  • 33
1
vote
1 answer

Integrate Microsoft Bot to exist WebAPI

I have a ASP.NET Core project with only Controllers (WebAPI). I realized that Microsoft Bot is only a middleware for an ASP.NET server, it is even defined in the WebHost startup methods. Can I take an existing project and add to it the middleware of…
baruchiro
  • 5,088
  • 5
  • 44
  • 66