Sign in
HongmeiG
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
RSS for posts
Atom
RSS for comments
OK
Search
Tags
No tags have been created or used yet.
Archive
Archives
May 2013
(1)
April 2013
(1)
September 2012
(1)
August 2012
(1)
July 2012
(2)
May 2012
(3)
February 2012
(3)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
HongmeiG
How to access the Client's IP address in Web API
Posted
10 months ago
by
Hongmei Ge
0
Comments
For web hosted, you can access your client address via the following: Code Snippet string clientAddress = HttpContext .Current.Request.UserHostAddress; For self hosted, you can access your client address via the following: Code...
HongmeiG
How to retrieve all the filters that applies to one particular action in Web API
Posted
10 months ago
by
Hongmei Ge
0
Comments
Sometimes you want to retrieve all the filters that one action supports, and you can do that via the following code snippet. Hope this helps. Code Snippet Collection < FilterInfo > filterInfoCollection = action.GetFilterPipeline(); ...
Page 1 of 1 (2 items)