NetStandardPclExportClient
Assembly: ServiceStack.Client.dll
View Source
Declaration
public class NetStandardPclExportClient : PclExportClient
Fields
Provider
View Source
Declaration
public static NetStandardPclExportClient Provider
Methods
Configure()
View Source
Declaration
public static PclExportClient Configure()
Returns
SetIfModifiedSince(HttpWebRequest, DateTime)
View Source
Declaration
public override void SetIfModifiedSince(HttpWebRequest webReq, DateTime lastModified)
Parameters
Type | Name |
---|---|
HttpWebRequest | webReq |
DateTime | lastModified |
GetHeader(WebHeaderCollection, String, Func<String, Boolean>)
View Source
Declaration
public override string GetHeader(WebHeaderCollection headers, string name, Func<string, bool> valuePredicate)
Returns
System.String
Parameters
Type | Name |
---|---|
WebHeaderCollection | headers |
System.String | name |
Func<System.String,System.Boolean> | valuePredicate |
Inherited Methods
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 |
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 |
Configure(PclExportClient)
View Source
Declaration
public static void Configure(PclExportClient instance)
Parameters
Type | Name |
---|---|
ServiceStack.PclExportClient | instance |
ConfigureProvider(String)
View Source
Declaration
public static bool ConfigureProvider(string typeName)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | typeName |
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 |
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 |
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 |
HtmlAttributeEncode(String)
View Source
Declaration
public virtual string HtmlAttributeEncode(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 |
HtmlEncode(String)
View Source
Declaration
public virtual string HtmlEncode(string html)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | html |
IsWebException(WebException)
View Source
Declaration
public virtual bool IsWebException(WebException webEx)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Net.WebException | webEx |
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 |
RunOnUiThread(Action)
View Source
Declaration
public virtual void RunOnUiThread(Action fn)
Parameters
Type | Name |
---|---|
System.Action | fn |
SetCookieContainer(HttpWebRequest, AsyncServiceClient)
View Source
Declaration
public virtual void SetCookieContainer(HttpWebRequest webRequest, AsyncServiceClient client)
Parameters
Type | Name |
---|---|
System.Net.HttpWebRequest | webRequest |
ServiceStack.AsyncServiceClient | client |
SetCookieContainer(HttpWebRequest, ServiceClientBase)
View Source
Declaration
public virtual void SetCookieContainer(HttpWebRequest webRequest, ServiceClientBase client)
Parameters
Type | Name |
---|---|
System.Net.HttpWebRequest | webRequest |
ServiceStack.ServiceClientBase | client |
SetIfModifiedSince(HttpWebRequest, DateTime)
View Source
Declaration
public virtual void SetIfModifiedSince(HttpWebRequest webReq, DateTime lastModified)
Parameters
Type | Name |
---|---|
System.Net.HttpWebRequest | webReq |
System.DateTime | lastModified |
SynchronizeCookies(AsyncServiceClient)
View Source
Declaration
public virtual void SynchronizeCookies(AsyncServiceClient client)
Parameters
Type | Name |
---|---|
ServiceStack.AsyncServiceClient | client |
UrlDecode(String)
View Source
Declaration
public virtual string UrlDecode(string url)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | url |
UrlEncode(String)
View Source
Declaration
public virtual string UrlEncode(string url)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | url |
WaitAsync(Int32)
View Source
Declaration
public virtual Task WaitAsync(int waitForMs)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Int32 | waitForMs |