Save 37% off PRO during our Black Friday Sale! »

ASP.NET Web API - Filters (TR)

ASP.NET Web API - Filters (TR)

3a53a5136f530c121a196914aecf3936?s=128

Tugberk Ugurlu

March 17, 2012
Tweet

Transcript

  1. ASP.NET WEB API & FILTERS Tugberk Ugurlu .NET Developer (ASP.NET)

    Blog: http://www.tugberkugurlu.com/ Twitter: @tourismgeek E-mail: tugberkugurlu@gmail.com
  2. Filitreler Nedir?  İsteğin işlenme aşamasında farklı zamanlarda kendi kodumuzu

    çalıştırmamıza olanak tanır.  Cross-cutting Concerns  Logging  Caching  Authorization
  3. Filitreler Nasıl Kullanırız  Filitreler C# Öznitelikleridir (Attribute)  Üç

    farklı alanda başvurulabilir  Tüm Uygulama  Controller  Action
  4. Filitre Tipleri  ActionFilter (IActionFilter Interface)  ActionFilterAttribute abstract class

     OnActionExecuting Method  OnActionExecuted Method
  5. Filitre Tipleri  ExceptionFilter (IExceptionFilter Interface)  ExceptionFilterAttribute abstract class

     OnException Method
  6. Filitre Tipleri  AuthorizationFilter (IAuthorizationFilter Interface)  AuthorizationFilterAttribute abstract class

     OnAuthorization Method  System.Web.Http.AuthorizeAttribute  Custom Authorization Filters  Api Key Authorization Filter  RequireHttps Filter
  7. Örnek: http://tugberk.me/ApiKeyAuth

  8. Faydalı Kaynaklar  ASP.NET Web API Page  http://asp.net/web-api 

    Çeşitli Blog Yazıları ve Kaynakların Derlemesi  http://www.tugberkugurlu.com/archive/getting- started-with-asp-net-web-api-tutorials-videos-samples  ASP.NET Web API Forum  http://forums.asp.net/1246.aspx