PclExportClient
Assembly: ServiceStack.Client.dll
View Source
Declaration
public class PclExportClient
Fields
Instance
View Source
Declaration
public static PclExportClient Instance
EmptyTask
View Source
Declaration
public static readonly Task<object> EmptyTask
UiContext
View Source
Declaration
public SynchronizationContext UiContext
Methods
ConfigureProvider(String)
View Source
Declaration
public static bool ConfigureProvider(string typeName)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | typeName |
NewNameValueCollection()
View Source
Declaration
[Obsolete("Use new NameValueCollection()")]
public NameValueCollection NewNameValueCollection()
Returns
System.Collections.Specialized.NameValueCollection
ParseQueryString(String)
View Source
Declaration
public virtual NameValueCollection ParseQueryString(string query)
Returns
System.Collections.Specialized.NameValueCollection
Parameters
Type | Name |
---|---|
System.String | query |
UrlEncode(String)
View Source
Declaration
public virtual string UrlEncode(string url)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | url |
UrlDecode(String)
View Source
Declaration
public virtual string UrlDecode(string url)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | url |
HtmlAttributeEncode(String)
View Source
Declaration
public virtual string HtmlAttributeEncode(string html)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | html |
HtmlEncode(String)
View Source
Declaration
public virtual string HtmlEncode(string html)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | html |
HtmlDecode(String)
View Source
Declaration
public virtual string HtmlDecode(string html)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | html |
AddHeader(WebRequest, NameValueCollection)
View Source
Declaration
public virtual void AddHeader(WebRequest webReq, NameValueCollection headers)
Parameters
Type | Name |
---|---|
System.Net.WebRequest | webReq |
System.Collections.Specialized.NameValueCollection | headers |
GetHeader(WebHeaderCollection, String, Func<String, Boolean>)
View Source
Declaration
public virtual string GetHeader(WebHeaderCollection headers, string name, Func<string, bool> valuePredicate)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Net.WebHeaderCollection | headers |
System.String | name |
System.Func<System.String,System.Boolean> | valuePredicate |
SetCookieContainer(HttpWebRequest, ServiceClientBase)
View Source
Declaration
public virtual void SetCookieContainer(HttpWebRequest webRequest, ServiceClientBase client)
Parameters
Type | Name |
---|---|
System.Net.HttpWebRequest | webRequest |
ServiceStack.ServiceClientBase | client |
SetCookieContainer(HttpWebRequest, AsyncServiceClient)
View Source
Declaration
public virtual void SetCookieContainer(HttpWebRequest webRequest, AsyncServiceClient client)
Parameters
Type | Name |
---|---|
System.Net.HttpWebRequest | webRequest |
ServiceStack.AsyncServiceClient | client |
SynchronizeCookies(AsyncServiceClient)
View Source
Declaration
public virtual void SynchronizeCookies(AsyncServiceClient client)
Parameters
Type | Name |
---|---|
ServiceStack.AsyncServiceClient | client |
CreateTimer(TimerCallback, TimeSpan, Object)
View Source
Declaration
public virtual ITimer CreateTimer(TimerCallback cb, TimeSpan timeOut, object state)
Returns
Parameters
Type | Name |
---|---|
System.Threading.TimerCallback | cb |
System.TimeSpan | timeOut |
System.Object | state |
WaitAsync(Int32)
View Source
Declaration
public virtual Task WaitAsync(int waitForMs)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Int32 | waitForMs |
RunOnUiThread(Action)
View Source
Declaration
public virtual void RunOnUiThread(Action fn)
Parameters
Type | Name |
---|---|
System.Action | fn |
Configure(PclExportClient)
View Source
Declaration
public static void Configure(PclExportClient instance)
Parameters
Type | Name |
---|---|
ServiceStack.PclExportClient | instance |
CreateTimeoutException(Exception, String)
View Source
Declaration
public virtual Exception CreateTimeoutException(Exception ex, string errorMsg)
Returns
System.Exception
Parameters
Type | Name |
---|---|
System.Exception | ex |
System.String | errorMsg |
CloseReadStream(Stream)
View Source
Declaration
public virtual void CloseReadStream(Stream stream)
Parameters
Type | Name |
---|---|
System.IO.Stream | stream |
CloseWriteStream(Stream)
View Source
Declaration
public virtual void CloseWriteStream(Stream stream)
Parameters
Type | Name |
---|---|
System.IO.Stream | stream |
IsWebException(WebException)
View Source
Declaration
public virtual bool IsWebException(WebException webEx)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Net.WebException | webEx |
SetIfModifiedSince(HttpWebRequest, DateTime)
View Source
Declaration
public virtual void SetIfModifiedSince(HttpWebRequest webReq, DateTime lastModified)
Parameters
Type | Name |
---|---|
System.Net.HttpWebRequest | webReq |
System.DateTime | lastModified |