Click here to Skip to main content
15,921,577 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert string value to a data type Pin
J4amieC10-Apr-07 22:06
J4amieC10-Apr-07 22:06 
GeneralRe: Convert string value to a data type Pin
swjam11-Apr-07 2:22
swjam11-Apr-07 2:22 
QuestionData Access Layer on Web Service Pin
Tuwing.Sabado10-Apr-07 16:49
Tuwing.Sabado10-Apr-07 16:49 
AnswerRe: Data Access Layer on Web Service Pin
Sathesh Sakthivel10-Apr-07 17:59
Sathesh Sakthivel10-Apr-07 17:59 
Questioncreate dll Pin
albertin0410-Apr-07 16:24
albertin0410-Apr-07 16:24 
AnswerRe: create dll Pin
Not Active10-Apr-07 16:45
mentorNot Active10-Apr-07 16:45 
GeneralRe: create dll Pin
albertin0410-Apr-07 16:55
albertin0410-Apr-07 16:55 
QuestionPer-user Windows Service Pin
Vega0210-Apr-07 15:59
Vega0210-Apr-07 15:59 
I - as a user - am running a daemon that I want to provide some service to other applications that I am running. Some of my applications are also using a library that interfaces with this daemon.

Currently I'm using WCF via named pipes so all the plumbing is taken care of for me, but this solution seems to fall apart whenever another user logs onto the machine and also tries to start this daemon. Is there any way for both of our services to co-exist peacefully?

Specifically, how can I allow multiple users to run a daemon concurrently (limited to one daemon per user) while
- ensuring that a library running under user A's account will try to connect *only* to the daemon also running under user A's account, and
- ensuring that the daemon running under user A's account will allow connections *only* from applications running under user A's account.

I was thinking of creating a uniquely named pipe that derives from the user's SID, but this seems more like a hack than a solution and I think it would be quite fragile. I also wouldn't know how to limit connections to only the current user.

If I'm going about this in the wrong way, that would also be nice to know.

Thanks for any insight you guys and gals are able to provide! Big Grin | :-D

AnswerRe: Per-user Windows Service Pin
Scott Dorman10-Apr-07 17:11
professionalScott Dorman10-Apr-07 17:11 
GeneralRe: Per-user Windows Service Pin
Vega0210-Apr-07 20:20
Vega0210-Apr-07 20:20 
GeneralRe: Per-user Windows Service Pin
Scott Dorman12-Apr-07 2:49
professionalScott Dorman12-Apr-07 2:49 
QuestionHow to discover if a method throws an exception Pin
Quinten.Miller10-Apr-07 14:45
Quinten.Miller10-Apr-07 14:45 
AnswerRe: How to discover if a method throws an exception Pin
KevinMac10-Apr-07 15:03
KevinMac10-Apr-07 15:03 
GeneralRe: How to discover if a method throws an exception Pin
Quinten.Miller10-Apr-07 16:32
Quinten.Miller10-Apr-07 16:32 
GeneralRe: How to discover if a method throws an exception Pin
Leslie Sanford10-Apr-07 16:58
Leslie Sanford10-Apr-07 16:58 
GeneralRe: How to discover if a method throws an exception Pin
Quinten.Miller10-Apr-07 17:42
Quinten.Miller10-Apr-07 17:42 
AnswerRe: How to discover if a method throws an exception Pin
Christian Graus10-Apr-07 15:11
protectorChristian Graus10-Apr-07 15:11 
AnswerRe: How to discover if a method throws an exception Pin
Scott Dorman10-Apr-07 17:14
professionalScott Dorman10-Apr-07 17:14 
AnswerRe: How to discover if a method throws an exception Pin
pbraun10-Apr-07 17:32
pbraun10-Apr-07 17:32 
GeneralRe: How to discover if a method throws an exception Pin
Quinten.Miller10-Apr-07 18:32
Quinten.Miller10-Apr-07 18:32 
AnswerRe: How to discover if a method throws an exception Pin
nima_e198310-Apr-07 21:03
nima_e198310-Apr-07 21:03 
GeneralRe: How to discover if a method throws an exception Pin
Quinten.Miller10-Apr-07 21:10
Quinten.Miller10-Apr-07 21:10 
AnswerRe: How to discover if a method throws an exception [modified] Pin
Russell Jones11-Apr-07 2:19
Russell Jones11-Apr-07 2:19 
QuestionCrystal Reports - DataBase Login - C# Pin
aranhamarvel10-Apr-07 14:12
aranhamarvel10-Apr-07 14:12 
AnswerRe: Crystal Reports - DataBase Login - C# Pin
phantanagu10-Apr-07 16:31
phantanagu10-Apr-07 16:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.