¡@

Home 

c# Programming Glossary: apicontroller

Api controller declaring more than one Get statement

http://stackoverflow.com/questions/10121152/api-controller-declaring-more-than-one-get-statement

of code to show what I'd like to be able to do in a single ApiController public IEnumerable string GetClients Get data public IEnumerable..

HttpClient.GetAsync(…) never returns when using await/async

http://stackoverflow.com/questions/10343632/httpclient-getasync-never-returns-when-using-await-async

the API in some way Code to reproduce public class BaseApiController ApiController summary Retrieves data using continuations summary.. some way Code to reproduce public class BaseApiController ApiController summary Retrieves data using continuations summary protected.. public class Test1Controller BaseApiController summary Handles task using Async Await summary public async..

Returning http status code from ASP.NET MVC 4 Web Api controller

http://stackoverflow.com/questions/10655350/returning-http-status-code-from-asp-net-mvc-4-web-api-controller

was something like this public class TryController ApiController public User GetUser int userId DateTime lastModifiedAtClient..

What is the difference between HttpResponseMessage and HttpResponseException

http://stackoverflow.com/questions/10660721/what-is-the-difference-between-httpresponsemessage-and-httpresponseexception

I have the following code public class CustomerController ApiController private ICustomerContext repo public CustomerController ICustomerContext.. would do with this code. public class CustomerController ApiController private ICustomerContext repo public CustomerController ICustomerContext..

ASP.NET WebApi unit testing with Request.CreateResponse

http://stackoverflow.com/questions/10868673/asp-net-webapi-unit-testing-with-request-createresponse

I am trying to write some unit tests for my ApiController and faced some issues. There is a nice extension method called..

Multiple HttpPost method in MVC4 Web API Controller

http://stackoverflow.com/questions/11407267/multiple-httppost-method-in-mvc4-web-api-controller

the following Controller public class VTRoutingController ApiController HttpPost public MyResult Route MyRequestTemplate routingRequestTemplate.. like ActionName route public class VTRoutingController ApiController ActionName route public MyResult PostRoute MyRequestTemplate..

How to hook FluentValidator to a Web API?

http://stackoverflow.com/questions/12975291/how-to-hook-fluentvalidator-to-a-web-api

returns False but when I use MyController ApiController ... nothing. Does anyone have experience on how to hook those..

await vs Task.Wait - Deadlock?

http://stackoverflow.com/questions/13140523/await-vs-task-wait-deadlock

in a ASP.NET WebAPI service public class TestController ApiController public static async Task string Foo await Task.Delay 1 .ConfigureAwait..

Best practice to call ConfigureAwait for all server-side code

http://stackoverflow.com/questions/13489065/best-practice-to-call-configureawait-for-all-server-side-code

question. When you have server side code i.e. some ApiController and your functions are asynchronous so they return Task SomeObject.. thread when you are returning the final result of your ApiController function. I've typed up an example of what I am talking about.. I am talking about below public class CustomerController ApiController public async Task Customer Get int id you are on a particular..

How do I log ALL exceptions globally for a C# MVC4 WebAPI app?

http://stackoverflow.com/questions/15167927/how-do-i-log-all-exceptions-globally-for-a-c-sharp-mvc4-webapi-app

not get logged. For example public class ReportController ApiController public int test var foo Convert.ToInt32 a Will throw error.. Critical Exception custom action invoker public class MyApiControllerActionInvoker ApiControllerActionInvoker public override Task.. action invoker public class MyApiControllerActionInvoker ApiControllerActionInvoker public override Task HttpResponseMessage InvokeActionAsync..

Web API OData Inlinecount not working

http://stackoverflow.com/questions/15422831/web-api-odata-inlinecount-not-working

ASP.NET Web API application public class ValuesController ApiController GET api values Queryable PageSize 1 public IQueryable string..

ServiceStack Request DTO design

http://stackoverflow.com/questions/15927475/servicestack-request-dto-design

like RPC Api that WCF does public class ProductsController ApiController public IEnumerable Product GetAllProducts return products public..

IoC: Castle Windsor and WebAPI

http://stackoverflow.com/questions/16154566/ioc-castle-windsor-and-webapi

WebAPI project and not an MVC4 project with a couple ApiController s judiciously tossed in. I don't know how or if this affects..

Why is an “await Task.Yield()” required for Thread.CurrentPrincipal to flow correctly?

http://stackoverflow.com/questions/16653308/why-is-an-await-task-yield-required-for-thread-currentprincipal-to-flow-corr

ExampleWebApi.Controllers public class ValuesController ApiController public async Task GetAsync await AuthenticateAsync false if.. the call to AuthenticateAsync and it will still succeed. ApiController.User returns Thread.CurrentPrincipal . HttpContext.Current.User..