Skip to main content

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
TypeName
System.StringtypeName

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
TypeName
System.Stringquery

UrlEncode(String)

View Source
Declaration
public virtual string UrlEncode(string url)
Returns

System.String

Parameters
TypeName
System.Stringurl

UrlDecode(String)

View Source
Declaration
public virtual string UrlDecode(string url)
Returns

System.String

Parameters
TypeName
System.Stringurl

HtmlAttributeEncode(String)

View Source
Declaration
public virtual string HtmlAttributeEncode(string html)
Returns

System.String

Parameters
TypeName
System.Stringhtml

HtmlEncode(String)

View Source
Declaration
public virtual string HtmlEncode(string html)
Returns

System.String

Parameters
TypeName
System.Stringhtml

HtmlDecode(String)

View Source
Declaration
public virtual string HtmlDecode(string html)
Returns

System.String

Parameters
TypeName
System.Stringhtml

AddHeader(WebRequest, NameValueCollection)

View Source
Declaration
public virtual void AddHeader(WebRequest webReq, NameValueCollection headers)
Parameters
TypeName
System.Net.WebRequestwebReq
System.Collections.Specialized.NameValueCollectionheaders

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
TypeName
System.Net.WebHeaderCollectionheaders
System.Stringname
System.Func<System.String,System.Boolean>valuePredicate

SetCookieContainer(HttpWebRequest, ServiceClientBase)

View Source
Declaration
public virtual void SetCookieContainer(HttpWebRequest webRequest, ServiceClientBase client)
Parameters
TypeName
System.Net.HttpWebRequestwebRequest
ServiceStack.ServiceClientBaseclient

SetCookieContainer(HttpWebRequest, AsyncServiceClient)

View Source
Declaration
public virtual void SetCookieContainer(HttpWebRequest webRequest, AsyncServiceClient client)
Parameters
TypeName
System.Net.HttpWebRequestwebRequest
ServiceStack.AsyncServiceClientclient

SynchronizeCookies(AsyncServiceClient)

View Source
Declaration
public virtual void SynchronizeCookies(AsyncServiceClient client)
Parameters
TypeName
ServiceStack.AsyncServiceClientclient

CreateTimer(TimerCallback, TimeSpan, Object)

View Source
Declaration
public virtual ITimer CreateTimer(TimerCallback cb, TimeSpan timeOut, object state)
Returns

ServiceStack.ITimer

Parameters
TypeName
System.Threading.TimerCallbackcb
System.TimeSpantimeOut
System.Objectstate

WaitAsync(Int32)

View Source
Declaration
public virtual Task WaitAsync(int waitForMs)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Int32waitForMs

RunOnUiThread(Action)

View Source
Declaration
public virtual void RunOnUiThread(Action fn)
Parameters
TypeName
System.Actionfn

Configure(PclExportClient)

View Source
Declaration
public static void Configure(PclExportClient instance)
Parameters
TypeName
ServiceStack.PclExportClientinstance

CreateTimeoutException(Exception, String)

View Source
Declaration
public virtual Exception CreateTimeoutException(Exception ex, string errorMsg)
Returns

System.Exception

Parameters
TypeName
System.Exceptionex
System.StringerrorMsg

CloseReadStream(Stream)

View Source
Declaration
public virtual void CloseReadStream(Stream stream)
Parameters
TypeName
System.IO.Streamstream

CloseWriteStream(Stream)

View Source
Declaration
public virtual void CloseWriteStream(Stream stream)
Parameters
TypeName
System.IO.Streamstream

IsWebException(WebException)

View Source
Declaration
public virtual bool IsWebException(WebException webEx)
Returns

System.Boolean

Parameters
TypeName
System.Net.WebExceptionwebEx

SetIfModifiedSince(HttpWebRequest, DateTime)

View Source
Declaration
public virtual void SetIfModifiedSince(HttpWebRequest webReq, DateTime lastModified)
Parameters
TypeName
System.Net.HttpWebRequestwebReq
System.DateTimelastModified