Sending/receiving lists as method arguments

5 views
Skip to first unread message

Alec

unread,
Dec 31, 2011, 12:21:11 PM12/31/11
to OpenRasta
Hi
I need to expose some methods receiving lists as arguments, i.e.:

public class TasksCollecionHandler
{
public TaskCollection GetTasksByEngineer(List<int>
engineerIds)
{
....
}
public TaskCollecion GetTasksByEngineer(List<Engineer>
engineers)
{
....
}
}

1. Do I need to do something extra at resource registration besides
to:

ResourceSpace.Has.ResourcesOfType<TaskCollection>().AtUri("/tasks")
.HandledBy<TaskCollectionHandler>().AsJsonDataContract();
Like register some others Uris?
2. How the clients consuming this service/resource should pass the
list arguments?
For instance can I send this list in a URL string reaching this
methods? can I only send it through forms? how ? an example would be
great

Thanks in advance
Reply all
Reply to author
Forward
0 new messages