Tagged Questions
1
vote
2answers
85 views
Designing an API for service operations with closely related parameters
I'm having trouble deciding how to design this service API.
public class GetCurrentValuesRequest
{
public int ReferenceID { get; set; }
public int[] FilterIDs { get; set; }
}
public class ...
1
vote
1answer
63 views
Storage Client Library 2.0 - Why is the API not as intuitive to use as 1.7?
I am migrating to using the new Storage Client Library for my Azure Table Storage.
Querying with the previous Storage Client Library 1.7 namespace:
var orders = serviceContext
...
7
votes
3answers
231 views
Is it safe to assume that one controller will only ever use one primary model?
So, I'm designing an MVC framework. In the name of keeping everything statically typed and non-magical, I've come to quite a problem with "automatically" passing models to a controller.
So, ...
0
votes
1answer
87 views
Configuration file for an API - should it be web.config?
I have a remote procedure call API where the connection parameters need to be stored somewhere that the API code can access. This API is expected to be used mainly to create web services.
I ...
13
votes
3answers
536 views
Detecting IEnumerable “State Machines”
I just read an interesting article called Getting too cute with c# yield return
It made me wonder what the best way is to detect whether an IEnumerable is an actual enumerable collection, or if it's ...