ServiceClientExtensions
Assembly: ServiceStack.Client.dll
View Source
public static class ServiceClientExtensions
Methods
GetEncryptedClient(IJsonServiceClient, String)
View Source
public static IEncryptedClient GetEncryptedClient(this IJsonServiceClient client, string serverPublicKeyXml)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.IJsonServiceClient | client |
System.String | serverPublicKeyXml |
Send(IEncryptedClient, IReturnVoid)
View Source
public static void Send(this IEncryptedClient client, IReturnVoid request)
Parameters
Type | Name |
---|---|
ServiceStack.IEncryptedClient | client |
ServiceStack.IReturnVoid | request |
GetEncryptedClient(IJsonServiceClient, RSAParameters)
View Source
public static IEncryptedClient GetEncryptedClient(this IJsonServiceClient client, RSAParameters publicKey)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.IJsonServiceClient | client |
System.Security.Cryptography.RSAParameters | publicKey |
Get<TResponse>(IEncryptedClient, IReturn<TResponse>)
View Source
public static TResponse Get<TResponse>(this IEncryptedClient client, IReturn<TResponse> request)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IEncryptedClient | client |
ServiceStack.IReturn<T> | request |
Type Parameters
TResponse
Delete<TResponse>(IEncryptedClient, IReturn<TResponse>)
View Source
public static TResponse Delete<TResponse>(this IEncryptedClient client, IReturn<TResponse> request)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IEncryptedClient | client |
ServiceStack.IReturn<T> | request |
Type Parameters
TResponse
Post<TResponse>(IEncryptedClient, IReturn<TResponse>)
View Source
public static TResponse Post<TResponse>(this IEncryptedClient client, IReturn<TResponse> request)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IEncryptedClient | client |
ServiceStack.IReturn<T> | request |
Type Parameters
TResponse
Put<TResponse>(IEncryptedClient, IReturn<TResponse>)
View Source
public static TResponse Put<TResponse>(this IEncryptedClient client, IReturn<TResponse> request)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IEncryptedClient | client |
ServiceStack.IReturn<T> | request |
Type Parameters
TResponse
ResponseStream(WebResponse)
View Source
public static Stream ResponseStream(this WebResponse webRes)
Returns
System.IO.Stream
Parameters
Type | Name |
---|---|
System.Net.WebResponse | webRes |
PostFile<TResponse>(IRestClient, String, FileInfo, String, String)
View Source
public static TResponse PostFile<TResponse>(this IRestClient client, string relativeOrAbsoluteUrl, FileInfo fileToUpload, string mimeType, string fieldName = "file")
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IRestClient | client |
System.String | relativeOrAbsoluteUrl |
System.IO.FileInfo | fileToUpload |
System.String | mimeType |
System.String | fieldName |
Type Parameters
TResponse
PostFileWithRequest<TResponse>(IRestClient, FileInfo, Object, String)
View Source
public static TResponse PostFileWithRequest<TResponse>(this IRestClient client, FileInfo fileToUpload, object request, string fieldName = "file")
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IRestClient | client |
System.IO.FileInfo | fileToUpload |
System.Object | request |
System.String | fieldName |
Type Parameters
TResponse
PostFileWithRequest<TResponse>(IRestClient, String, FileInfo, Object, String)
View Source
public static TResponse PostFileWithRequest<TResponse>(this IRestClient client, string relativeOrAbsoluteUrl, FileInfo fileToUpload, object request, string fieldName = "file")
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IRestClient | client |
System.String | relativeOrAbsoluteUrl |
System.IO.FileInfo | fileToUpload |
System.Object | request |
System.String | fieldName |
Type Parameters
TResponse
PopulateRequestMetadatas(IHasSessionId, IEnumerable<Object>)
View Source
public static void PopulateRequestMetadatas(this IHasSessionId client, IEnumerable<object> requests)
Parameters
Type | Name |
---|---|
ServiceStack.IHasSessionId | client |
System.Collections.Generic.IEnumerable<System.Object> | requests |
PopulateRequestMetadata(IHasSessionId, Object)
View Source
public static void PopulateRequestMetadata(this IHasSessionId client, object request)
Parameters
Type | Name |
---|---|
ServiceStack.IHasSessionId | client |
System.Object | request |
ToDictionary(CookieContainer, String)
View Source
public static Dictionary<string, string> ToDictionary(this CookieContainer cookies, string baseUri)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|---|
System.Net.CookieContainer | cookies |
System.String | baseUri |
SetCookie(IServiceClient, Uri, String, String, Nullable<DateTime>, String, Nullable<Boolean>, Nullable<Boolean>)
View Source
public static void SetCookie(this IServiceClient client, Uri baseUri, string name, string value, DateTime? expiresAt = null, string path = "/", bool? httpOnly = null, bool? secure = null)
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
System.Uri | baseUri |
System.String | name |
System.String | value |
System.Nullable<System.DateTime> | expiresAt |
System.String | path |
System.Nullable<System.Boolean> | httpOnly |
System.Nullable<System.Boolean> | secure |
AssertCookieContainer(IServiceClient)
View Source
public static CookieContainer AssertCookieContainer(this IServiceClient client)
Returns
System.Net.CookieContainer
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
DeleteCookie(CookieContainer, Uri, String)
View Source
public static void DeleteCookie(this CookieContainer cookieContainer, Uri uri, string name)
Parameters
Type | Name |
---|---|
System.Net.CookieContainer | cookieContainer |
System.Uri | uri |
System.String | name |
DeleteCookie(IHasCookieContainer, Uri, String)
View Source
public static void DeleteCookie(this IHasCookieContainer hasCookieContainer, Uri uri, string name)
Parameters
Type | Name |
---|---|
ServiceStack.IHasCookieContainer | hasCookieContainer |
System.Uri | uri |
System.String | name |
DeleteCookie(IJsonServiceClient, String)
View Source
public static void DeleteCookie(this IJsonServiceClient client, string name)
Parameters
Type | Name |
---|---|
ServiceStack.IJsonServiceClient | client |
System.String | name |
PostBody<TResponse>(IServiceClient, IReturn<TResponse>, Object)
View Source
public static TResponse PostBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, object requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Object | requestBody |
Type Parameters
TResponse
PostBody<TResponse>(IServiceClient, IReturn<TResponse>, String)
View Source
public static TResponse PostBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, string requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.String | requestBody |
Type Parameters
TResponse
PostBody<TResponse>(IServiceClient, IReturn<TResponse>, Byte[])
View Source
public static TResponse PostBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, byte[] requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Byte[] | requestBody |
Type Parameters
TResponse
PostBody<TResponse>(IServiceClient, IReturn<TResponse>, Stream)
View Source
public static TResponse PostBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, Stream requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.IO.Stream | requestBody |
Type Parameters
TResponse
PutBody<TResponse>(IServiceClient, IReturn<TResponse>, Object)
View Source
public static TResponse PutBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, object requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Object | requestBody |
Type Parameters
TResponse
PutBody<TResponse>(IServiceClient, IReturn<TResponse>, String)
View Source
public static TResponse PutBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, string requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.String | requestBody |
Type Parameters
TResponse
PutBody<TResponse>(IServiceClient, IReturn<TResponse>, Byte[])
View Source
public static TResponse PutBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, byte[] requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Byte[] | requestBody |
Type Parameters
TResponse
PutBody<TResponse>(IServiceClient, IReturn<TResponse>, Stream)
View Source
public static TResponse PutBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, Stream requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.IO.Stream | requestBody |
Type Parameters
TResponse
PatchBody<TResponse>(IServiceClient, IReturn<TResponse>, Object)
View Source
public static TResponse PatchBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, object requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Object | requestBody |
Type Parameters
TResponse
PatchBody<TResponse>(IServiceClient, IReturn<TResponse>, String)
View Source
public static TResponse PatchBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, string requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.String | requestBody |
Type Parameters
TResponse
PatchBody<TResponse>(IServiceClient, IReturn<TResponse>, Byte[])
View Source
public static TResponse PatchBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, byte[] requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Byte[] | requestBody |
Type Parameters
TResponse
PatchBody<TResponse>(IServiceClient, IReturn<TResponse>, Stream)
View Source
public static TResponse PatchBody<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, Stream requestBody)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.IO.Stream | requestBody |
Type Parameters
TResponse
PostBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, Object, CancellationToken)
View Source
public static Task<TResponse> PostBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, object requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Object | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PostBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, String, CancellationToken)
View Source
public static Task<TResponse> PostBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, string requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.String | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PostBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, Byte[], CancellationToken)
View Source
public static Task<TResponse> PostBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, byte[] requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Byte[] | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PostBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, Stream, CancellationToken)
View Source
public static Task<TResponse> PostBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, Stream requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.IO.Stream | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PutBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, Object, CancellationToken)
View Source
public static Task<TResponse> PutBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, object requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Object | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PutBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, String, CancellationToken)
View Source
public static Task<TResponse> PutBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, string requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.String | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PutBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, Byte[], CancellationToken)
View Source
public static Task<TResponse> PutBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, byte[] requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Byte[] | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PutBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, Stream, CancellationToken)
View Source
public static Task<TResponse> PutBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, Stream requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.IO.Stream | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PatchBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, Object, CancellationToken)
View Source
public static Task<TResponse> PatchBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, object requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Object | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PatchBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, String, CancellationToken)
View Source
public static Task<TResponse> PatchBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, string requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.String | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PatchBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, Byte[], CancellationToken)
View Source
public static Task<TResponse> PatchBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, byte[] requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.Byte[] | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
PatchBodyAsync<TResponse>(IServiceClient, IReturn<TResponse>, Stream, CancellationToken)
View Source
public static Task<TResponse> PatchBodyAsync<TResponse>(this IServiceClient client, IReturn<TResponse> toRequest, Stream requestBody, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
ServiceStack.IReturn<T> | toRequest |
System.IO.Stream | requestBody |
System.Threading.CancellationToken | token |
Type Parameters
TResponse
WithBasePath<T>(T, String)
View Source
public static T WithBasePath<T>(this T client, string basePath)
where T : ServiceClientBase
Returns
<T>
Parameters
Type | Name |
---|---|
<T> | client |
System.String | basePath |
Type Parameters
T
SetCookie(CookieContainer, Uri, String, String, Nullable<DateTime>, String, Nullable<Boolean>, Nullable<Boolean>)
View Source
public static void SetCookie(this CookieContainer cookieContainer, Uri baseUri, string name, string value, DateTime? expiresAt, string path = "/", bool? httpOnly = null, bool? secure = null)
Parameters
Type | Name |
---|---|
System.Net.CookieContainer | cookieContainer |
System.Uri | baseUri |
System.String | name |
System.String | value |
System.Nullable<System.DateTime> | expiresAt |
System.String | path |
System.Nullable<System.Boolean> | httpOnly |
System.Nullable<System.Boolean> | secure |
GetSessionId(IServiceClient)
View Source
public static string GetSessionId(this IServiceClient client)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
GetPermanentSessionId(IServiceClient)
View Source
public static string GetPermanentSessionId(this IServiceClient client)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
GetOptions(IServiceClient)
View Source
public static string GetOptions(this IServiceClient client)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
SetSessionId(IServiceClient, String)
View Source
public static void SetSessionId(this IServiceClient client, string sessionId)
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
System.String | sessionId |
SetPermanentSessionId(IServiceClient, String)
View Source
public static void SetPermanentSessionId(this IServiceClient client, string sessionId)
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
System.String | sessionId |
SetOptions(IServiceClient, String)
View Source
public static void SetOptions(this IServiceClient client, string options)
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
System.String | options |
GetTokenCookie(IServiceClient)
View Source
public static string GetTokenCookie(this IServiceClient client)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
GetRefreshTokenCookie(IServiceClient)
View Source
public static string GetRefreshTokenCookie(this IServiceClient client)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
GetTokenCookie(CookieContainer, String)
View Source
public static string GetTokenCookie(this CookieContainer cookies, string baseUri)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Net.CookieContainer | cookies |
System.String | baseUri |
GetRefreshTokenCookie(CookieContainer, String)
View Source
public static string GetRefreshTokenCookie(this CookieContainer cookies, string baseUri)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Net.CookieContainer | cookies |
System.String | baseUri |
SetTokenCookie(IServiceClient, String)
View Source
public static void SetTokenCookie(this IServiceClient client, string token)
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
System.String | token |
DeleteTokenCookie(IJsonServiceClient)
View Source
public static void DeleteTokenCookie(this IJsonServiceClient client)
Parameters
Type | Name |
---|---|
ServiceStack.IJsonServiceClient | client |
SetRefreshTokenCookie(IServiceClient, String)
View Source
public static void SetRefreshTokenCookie(this IServiceClient client, string token)
Parameters
Type | Name |
---|---|
ServiceStack.IServiceClient | client |
System.String | token |
DeleteRefreshTokenCookie(IJsonServiceClient)
View Source
public static void DeleteRefreshTokenCookie(this IJsonServiceClient client)
Parameters
Type | Name |
---|---|
ServiceStack.IJsonServiceClient | client |
DeleteTokenCookies(IJsonServiceClient)
View Source
public static void DeleteTokenCookies(this IJsonServiceClient client)
Parameters
Type | Name |
---|---|
ServiceStack.IJsonServiceClient | client |
SetTokenCookie(CookieContainer, String, String)
View Source
public static void SetTokenCookie(this CookieContainer cookies, string baseUri, string token)
Parameters
Type | Name |
---|---|
System.Net.CookieContainer | cookies |
System.String | baseUri |
System.String | token |
SetRefreshTokenCookie(CookieContainer, String, String)
View Source
public static void SetRefreshTokenCookie(this CookieContainer cookies, string baseUri, string token)
Parameters
Type | Name |
---|---|
System.Net.CookieContainer | cookies |
System.String | baseUri |
System.String | token |
GetCookieValue(AsyncServiceClient, String)
View Source
public static string GetCookieValue(this AsyncServiceClient client, string name)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.AsyncServiceClient | client |
System.String | name |
GetTokenCookie(AsyncServiceClient)
View Source
public static string GetTokenCookie(this AsyncServiceClient client)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.AsyncServiceClient | client |
GetRefreshTokenCookie(AsyncServiceClient)
View Source
public static string GetRefreshTokenCookie(this AsyncServiceClient client)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.AsyncServiceClient | client |
SetUserAgent(HttpWebRequest, String)
View Source
public static void SetUserAgent(this HttpWebRequest req, string userAgent)
Parameters
Type | Name |
---|---|
System.Net.HttpWebRequest | req |
System.String | userAgent |
AddAuthSecret(IRestClient, String)
View Source
public static void AddAuthSecret(this IRestClient client, string authsecret)
Parameters
Type | Name |
---|---|
ServiceStack.IRestClient | client |
System.String | authsecret |
Apply<T>(T, Action<T>)
View Source
public static T Apply<T>(this T client, Action<T> fn)
where T : IServiceGateway
Returns
<T>
Parameters
Type | Name |
---|---|
<T> | client |
System.Action<<T>> | fn |
Type Parameters
T