Tagged Questions
5
votes
0answers
164 views
Doubts about the quality of an API designed for use with minimal effort
This is going to be long, and I do hope it is going to make some kind of sense; I apologize if it doesn't. I'll try to provide exactly the amount of context that is necessary to understand the ...
3
votes
2answers
626 views
Task scheduler API
I'm spec'ing out a API for a task scheduler and I would be thankful for your thoughts. This is what I've got so far:
public void Configure(Context ctx) {
// Single tasks
ctx.Run(() => ...
3
votes
2answers
205 views
Complexity, Usability and Readability of FluentAPIs - Sample: FluentMethodInvoker
new MethodExecuter()
.ForAllInvocationsCheckCondition(!Context.WannaShutDown)
.When(shouldRun).ThenInvoke(x => x.Methods(new Action[] { B.Process, A.Process }))
...
2
votes
3answers
230 views
Majorly refactored my code, is this good enough?
namespace SharpDream.Api
{
public enum SourceType
{
Test,
Xml
}
public class UserFinder
{
private IUserInformationSource _sourceType;
private ...
2
votes
1answer
53 views
Refactor code for API wrapper
I am looking for ways to improve my API wrapper for Pocket. So far, my code is quite compact and nice (I think), but I feel like there must be a better way to do this.
This is the part where I think ...
1
vote
1answer
64 views
REST-ish API Account Controller - how's it look?
I still have to implement api keys for client auth, but so far this is what I have for users. This was built using WebAPI and SimpleMembership with Forms Auth:
Is Authenticated:
public class ...