single-instance

Saas: Single-instance vs Multi-instance vs Single-tenant vs Multi-tenant?

只谈情不闲聊 提交于 2020-03-15 07:58:20
问题 I've been reading about instances and tenants and in the Saas architecture. My questions are as follows (please correct anything that you notice I've gotten wrong with any of the following terms): 1) Instance: Is an instance of a piece of software just a copy of that software with its own database? Is there anything more to it than that? 2) Tenant: Is a tenant a user / group of users that share a common set of access privileges to an individual instance? 3) Single-instance: If a Saas provider

C# dot net core single instance app passing parameters to first instance

橙三吉。 提交于 2020-01-24 07:20:07
问题 Recently I decided to migrate one of my WPF Windows desktop apps written in C# and targeting .NET Framework 4.5 to the newest .NET Core 3.1 . All was good until I had to add support for single instance application while being able to pass any parameters from the second instance to the first running instance. My previous WPF implementation for single instance application was using System.Runtime.Remoting which is not available in .NET Core . Therefore I had to do something new. Below is the

How to implement single instance per machine application?

点点圈 提交于 2020-01-09 07:57:18
问题 I have to restrict my .net 4 WPF application so that it can be run only once per machine. Note that I said per machine, not per session. I implemented single instance applications using a simple mutex until now, but unfortunately such a mutex is per session. Is there a way to create a machine wide mutex or is there any other solution to implement a single instance per machine application? 回答1: I would do this with a global Mutex object that must be kept for the life of your application.

Single instance app with message passing via cmd line?

橙三吉。 提交于 2020-01-05 04:24:24
问题 I have a C# app that is launched via command line. Usually data is pass through the command line such as add ( app -a string ). I would like only ONE instance of the app to be opened and if more strings are added via command line i would like the single instance to know about it and update itself. I can either put the data into the database properly and msg the running instance or msg and pass the data to the running instance and let it put it in the db and update itself. How would i do this

Restrict application to one instance per shell session on Windows

别等时光非礼了梦想. 提交于 2019-12-25 03:22:11
问题 There are a lot of solutions for restricting an application from running twice. Searching by process name, using a named mutex etc. But I all of these methods don't work if I want to restrict my application to the shell session. A user may have more than login session and shell on windows (right?)? If this is true I want to be able to run one instance of my application in every shell session but allow only one. Is there a way to get a shell identifier which could then be put into the mutex

Easiest way to find previous instance of an application

末鹿安然 提交于 2019-12-23 20:24:27
问题 I have rewritten a VB6 application in Delphi. It should have only one instance running. How can I do this with minimum of code? In VB6 we just have to use one single line of code > If App.PrevInstance Then 'Take some action End If On goggling I did find a solution but it is very length and we have to mess with .drp file. I do not want to do that. I want something simpler. 回答1: I have some code along the lines of: var AppMutex: THandle; { .... } initialization // Create the mutex AppMutex :=

Integrating Facebook and LinkedIn in Android app

别等时光非礼了梦想. 提交于 2019-12-23 17:01:28
问题 I have an app that integrates both Facebook and LinkdedIn networks. According to the instructions, in order to integrate LinkedIn, I need to add the following code in my manifest, within my activity: <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="x-oauthflow-linkedin" android:host="callback" /> </intent-filter> An example can