forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPclExportClient.Ios.cs
More file actions
34 lines (29 loc) · 992 Bytes
/
PclExportClient.Ios.cs
File metadata and controls
34 lines (29 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//Copyright (c) Service Stack LLC. All Rights Reserved.
//License: https://raw.github.com/ServiceStack/ServiceStack/master/license.txt
#if __IOS__
using System;
using System.Collections.Specialized;
using System.Threading;
using ServiceStack.Web;
namespace ServiceStack
{
public class IosPclExportClient : PclExportClient
{
public static IosPclExportClient Provider = new IosPclExportClient();
public override INameValueCollection NewNameValueCollection()
{
return new NameValueCollectionWrapper(new NameValueCollection());
}
public override INameValueCollection ParseQueryString(string query)
{
return ServiceStack.Pcl.HttpUtility.ParseQueryString(query).InWrapper();
}
public static PclExportClient Configure()
{
Configure(Provider ?? (Provider = new IosPclExportClient()));
IosPclExport.Configure();
return Provider;
}
}
}
#endif