Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I intend to use currentprincipal and I searched that the property is static , so it must be shared, Actually I need it to be different not shared. as I write some code I see the currentprincipal is different after 2 users logged in to application, is it right , can I be sure of being different of the property? Actually my users logged in to application and call my function through WCF! please ask me to clear if my explanation is not enough, thanks in asvance
System.Threading.Thread.CurrentPrincipal returns IPrincipal for current thread. Do your users use the same thread at one moment? I think, no.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 11 months ago.
Improve this question
I have software that takes your request, And I want to control requests with the plugins.
Fore example console writes: Enter Request: and i write time
well, Now I want the software to check if any plugin supports this command and then turn back the time and more (day, mouth, list of plugins, ...).
I looked at other sources but could not implement the project.
I hope someone can help me. :) Thanks.
I think you can adapt this MS tutorial and get what you want.
https://docs.miosoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support
It shows how to load pluggins and execute. From what you are describing this is what you are looking.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I want to develop a console application using C# which gets the IIS Application Pool status information,whether its running or stopped.For this I referred check the status of IIS Application Pool which matches my requirement.
Can someone please clarify what is the purpose of Directoryentry class according to the above code?
Any help is appreciated.
Thankyou.
The Directoryentry class is used here to get IIS application pools and you need to pass username and password to access them.
These required username and password need to be specified in "appsettings.json" file.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am trying to implement a cross-process event architecture where processes can "subscribe" to events, and then "unsubscribe".
My initial tests using EventWaitHandle are promising (although I've read some negative comments about them, but please set that aside for now).
Since these things are named, and are in fact opened by name using OpenExisting, I was a little surprised to find that the EventWaitHandle class does not have a Name property, so that given a collection of them I can find the one for a given name.
So, given a collection of these things, is there no way to see what name was used to create each one?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Can my software send information to my site and read information off my site?
Imagine that someone opens a copy of my software. The IP address of that device send to my site. So I can see if that person is a friend or not. If that person is not a friend, I will set a variable to false.
The software will then read it as false then the software will close out.
Is this possible to do? If so, how can I do this?
You need to add a web service on your site then you can call the service and get an answer. You can also create a simple web page that see a white page with the result true or false. Consider using a WCF service so that it can expand if you needed more in the future.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have my database information saved on a string in clear text, if someone decompile my application its possible to get that information?
If yes there are ways to prevent that?
Yes, absolutely. It's not even hard.
If you are trying to hid a secret from your user, give up. A sufficiently dedicated user will win. You can look at the windows Data Protection API (http://msdn.microsoft.com/en-us/library/ms995355.aspx) but its only a speed bump. If you have to keep it a secret, keep it on your own server.