Merge pull request #3528 from BrzVlad/fix-sgen-check-before-collections
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel / UpnEndpointIdentity.cs
index a866e93e4cba737f0cf73f35f9057650ca72e204..93863a78e5f54876595ff8535113c2eae8589a6d 100644 (file)
@@ -27,7 +27,9 @@
 //
 using System;
 using System.Collections.Generic;
+#if !MOBILE && !XAMMAC_4_5
 using System.IdentityModel.Claims;
+#endif
 using System.Security.Cryptography;
 using System.Security.Cryptography.X509Certificates;
 using System.Xml;
@@ -37,14 +39,21 @@ namespace System.ServiceModel
 {
        public class UpnEndpointIdentity : EndpointIdentity
        {
+#if !MOBILE && !XAMMAC_4_5
                public UpnEndpointIdentity (Claim identity)
                {
                        Initialize (identity);
                }
 
-               public UpnEndpointIdentity (string upn)
-                       : this (Claim.CreateUpnClaim (upn))
+               public UpnEndpointIdentity (string upnName)
+                       : this (Claim.CreateUpnClaim (upnName))
                {
                }
+#else
+               public UpnEndpointIdentity (string upnName)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
        }
 }