Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit d9ec3a4

Browse files
committed
Add Inference of PCL Platform Export for Mac
1 parent 9205ce3 commit d9ec3a4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ServiceStack.Text/PclExport.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public static class Platforms
2222
{
2323
public const string WindowsStore = "WindowsStore";
2424
public const string Android = "Android";
25-
public const string IOS = "IOS";
25+
public const string IOS = "IOS";
26+
public const string Mac = "MAC";
2627
public const string Silverlight5 = "Silverlight5";
2728
public const string WindowsPhone = "WindowsPhone";
2829
}
@@ -40,6 +41,8 @@ public static PclExport Instance
4041
= new XboxPclExport()
4142
#elif __IOS__
4243
= new IosPclExport()
44+
#elif __MAC__
45+
= new MacPclExport()
4346
#elif ANDROID
4447
= new AndroidPclExport()
4548
#else
@@ -58,6 +61,8 @@ static PclExport()
5861
return;
5962
if (ConfigureProvider("ServiceStack.AndroidPclExportClient, ServiceStack.Pcl.Android"))
6063
return;
64+
if (ConfigureProvider("ServiceStack.MacPclExportClient, ServiceStack.Pcl.Mac20"))
65+
return;
6166
if (ConfigureProvider("ServiceStack.WinStorePclExportClient, ServiceStack.Pcl.WinStore"))
6267
return;
6368
if (ConfigureProvider("ServiceStack.Net40PclExportClient, ServiceStack.Pcl.Net45"))

0 commit comments

Comments
 (0)