Tagged Questions
-1
votes
3answers
117 views
I have to run certain number of statements (which are executing .exe) in a loop
I have to run certain number of statements (which are executing .exe) in a loop.
ForEach(object obj in ListOfVersions)
{
Step 1: call Exe1 Args=obj.somevalues
Log Step 1 completed ...
3
votes
5answers
255 views
Pattern for select case on object type (of interface)
I have read that doing a select case is often a code smell. There are cases however where an interface cannot solve my problem.
For instance, I have a set of date filter objects (last 7 days, last ...
4
votes
3answers
155 views
As a tooling/automation developer, can I be making better use of OOP?
My time as a developer (~8 yrs) has been spent creating tooling/automation of one sort or another. The tools I develop usually interface with one or more API's. These API's could be win32, WMI, ...
1
vote
2answers
138 views
Implementing Command Pattern in Web Application
I'm looking to implement the command pattern in a web application (asp.net c#)... Since the commands come in text format from the client, what is the best way to translate the string to a command ...
0
votes
1answer
195 views
Implementing a ILogger interface to log data
I have a need to write data to file in one of my classes.
Obviously I will pass an interface into my class to decouple it.
I was thinking this interface will be used for testing and also in other ...
5
votes
2answers
297 views
Separating data access in ASP.NET MVC
I want to make sure I'm following industry standards and best practices with my first real crack at MVC. In this case, it's ASP.NET MVC, using C#.
I will be using Entity Framework 4.1 for my model, ...
4
votes
3answers
447 views
How to use a MessageBox using the MVVM pattern?
I am implementing a UI application using the MVVM design-pattern.
The thing is, sometimes when you detect that something is wrong with data that was inputted by the user, you'd like to notify him ...
0
votes
1answer
184 views
What would you call this design pattern?
Design pattern, or maybe antipattern? The whole idea is to NOT runtime-cast the IDispatch object. I have a method which should handle different IDispatch, but they must be privilege to the concrete ...
3
votes
1answer
130 views
Exposing warnings\errors from data objects (that are also list returned)
I'm exposing Data objects via service oriented assembly (which on future usages might become a WCF service).
The data object is tree designed, as well as formed from allot of properties.Moreover, ...
2
votes
1answer
145 views
What are the relative merits for implementing an Erlang-style “Continuation” pattern in C#
What are the relative merits (or demerits) for implementing an Erlang-style "Continuation" pattern in C#. I'm working on a project that has a large number of Lowest priority threads and I'm wondering ...
3
votes
2answers
180 views
“Worker object pool” pattern?
In my application requests are processed by objects of Processor-derived classes, something like CreateItemProcessor or MoveItemToGroupProcessor. Base Processor class implements most of common ...
4
votes
1answer
170 views
Architecture: for a Single website to be supported for different Clients
I have developed a system with one company profile.
The system is built using WCF services, asp.net.
Now another company wants to use our system as well. And they might need some customization and ...
5
votes
1answer
100 views
Checking members and instantiating in properties
Consider this:
public MyClass
{
private Resource _myResource;
public Resource MyResource
{
get
{
if(_myResource == null)
{
...
5
votes
1answer
168 views
IClass, Class, ClassImpl pattern?
I've been seeing a lot of code recently that looks like this:
public interface IFoo { int Bar(); }
public static class Foo
{
public static IFoo Create() { return new FooImpl(); }
private ...
3
votes
1answer
421 views
Implementing a DAO for entity framework
Could anybody help me to find a good tutorial about how can I implement DAO pattern and also tools that help me to create this classes in automated way.