I need advice on the requirement in one of our projects. We are trying to achieve what we want to control the flow of method calls from a text or XML file.
For instance:
string response = new Assembly1.Class1().DoStuff(); if (response == "OK") { new Assembly1.Class2().DoStuff(); } else if (response == "NOTOK") { new Assembly2.Class1().DoStuff(); }
As I can present the above code in some format, which can be changed by a non-technical user to change the sequence of function calls.
Essentially, you have to decide what you are trying to accomplish.
C # code contains a certain complexity, but all this complexity exists, because C # code is very flexible.
, . ββ , #, , #.
, , , . , , - , , .
, , , . "". , , . , , XML XML.
, xml. .
Factory . factory ...
sayFlowFlow() ( ). , .
At the beginning of the process, you simply read the XML file and create an object for the corresponding class and call the workflow method of this class, which will start the execution of the predefined sequence.
Source: https://habr.com/ru/post/1779337/More articles:Regular expression for matching phone numbers - regexHow to configure MStest using CruiseControl - msbuildmercurial temporarily ignores file versions - mercurialsomeone knows how to delete foxpro package data from oledb driver using c # - c #Integration of MSTest with cruise control system for several projects - mstestkSOAP2 output / org.xmlpull.v1.xmlpullparserexception expected start_tag - androiddo ccnet self test - cruisecontrol.nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1779340/ignore-all-changes-to-a-versioned-folder-in-svn-without-deleting-from-repo&usg=ALkJrhiuLwriNar77bBIQLf1qKcWSu5UEAHow to get availability zone information for a running instance - javaextend all node in SQL Reporting Service? - sqlAll Articles