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 8 years ago.
Improve this question
I am performing a series of steps, when I run the console application. Let's say the number of steps are 8, and it fails somewhere at the 4th step.
I wanted to be able to revert the first steps that I did before it failed. How can this be done, if it fails at any of steps?
If you implement the steps using the command pattern where each step knows how to do itself as well as undo itself. Then you would be able to just loop through the steps that have been done and undo them.
You may also be interested in this question Implementing the command pattern.
Related
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 4 hours ago.
Improve this question
I want to do the terminal (just command line / powershell / ssh), where user can work as usual, but also I want a handler which can control and impact on everything that is happening in terminal (input and output) and perform some actions with interface.
What is a better approach to implement it with Windows Forms?
I tried to use https://github.com/dwmkerr/consolecontrol, but can't find how to make normal terminal (where arrows, tab and color work)?
Many thanks.
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 3 days ago.
Improve this question
I have web app on Azure.
Suppose my application has entered a method that performs something. I can't get out of it.
When I close the web app on azura and turn it on, the app returns to the same point (method).
Can I somehow reset it and stop the execution of all methods?
Best regards
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 have to create a form for a task that is done by multiple people at the company I work for. Due to the circumstances, I have choosen Windows Forms and C# to make it. However, I'm not sure how I'm going to make the program available to my colleagues.
In Python, I use PyInstaller to create a .exe file and distribute my programs in a way that no one needs to install a Python interpreter to use it. Is there anything similar for C#?
Right click project and choose publish.
There’s a lot of tutorials about it.
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?