Add compiler pragmas for conditional .NET 4.5 compilation
authorRyan J. Melena <Ryan.Melena@noesislabs.com>
Thu, 28 Aug 2014 15:34:09 +0000 (10:34 -0500)
committerRyan J. Melena <Ryan.Melena@noesislabs.com>
Thu, 28 Aug 2014 16:57:47 +0000 (11:57 -0500)
31 files changed:
mcs/class/System.IdentityModel/System.IdentityModel.Configuration/ICustomIdentityConfiguration.cs
mcs/class/System.IdentityModel/System.IdentityModel.Configuration/IdentityModelCaches.cs
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/BinaryExchange.cs
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/EndpointReference.cs
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/Entropy.cs
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/Lifetime.cs
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/ProtectedKey.cs
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/RequestSecurityTokenResponse.cs
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/RequestedProofToken.cs
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/RequestedSecurityToken.cs
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/Status.cs
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/UseKey.cs
mcs/class/System.IdentityModel/System.IdentityModel.Protocols/WSTrust/WSTrustMessage.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/AudienceRestriction.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/AuthenticationContext.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/AuthenticationInformation.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/EncryptingCredentials.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/IssuerNameRegistry.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/ProofDescriptor.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenDescriptor.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenHandler.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenHandlerCollection.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SecurityTokenHandlerConfiguration.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityToken.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityTokenCache.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityTokenCacheKey.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/SessionSecurityTokenHandler.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/TokenReplayCache.cs
mcs/class/System.IdentityModel/System.IdentityModel.Tokens/X509SigningCredentials.cs
mcs/class/System.IdentityModel/System.IdentityModel/CookieTransform.cs
mcs/class/System.IdentityModel/System.IdentityModel/OpenObject.cs

index 80c2b2b81619b9ca1140834d2a2b3fd409a6be8e..91ae5d7ec651247a475828cff72b607492683a31 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.Xml;
 
 namespace System.IdentityModel.Configuration
@@ -33,4 +35,5 @@ namespace System.IdentityModel.Configuration
        {
                void LoadCustomConfiguration(XmlNodeList nodeList);
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 1cc49b85bd95397644b16a9e6744cce8d1f58ecd..cbe68f8f05322c5efd9cff8490f4117e29b8a206 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.IdentityModel.Tokens;
 
 namespace System.IdentityModel.Configuration
@@ -34,4 +36,5 @@ namespace System.IdentityModel.Configuration
                public SessionSecurityTokenCache SessionSecurityTokenCache { get; set; }
                public TokenReplayCache TokenReplayCache { get; set; }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index df69020fc8127ff77679f0e9103cef6c1aa27675..84f8f3bb7754cf7d94b0c0990edbe9a48bfc4879 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 
 namespace System.IdentityModel.Protocols.WSTrust
@@ -47,4 +49,5 @@ namespace System.IdentityModel.Protocols.WSTrust
                        EncodingType = encodingType;
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index bfce5c4d930b784cf2f2fcf59ca1e8dca1edb1f9..22828af6bd7554679775cbf8bf51a6844587892c 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.ObjectModel;
 using System.Xml;
@@ -58,4 +60,5 @@ namespace System.IdentityModel.Protocols.WSTrust
                        throw new NotImplementedException ();
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index f13e000ffe354658629274396b8da6200257ebda..4ec0c3e07babfe4a84fa5228b26b202ee20eb633 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.IdentityModel.Tokens;
 using System.Security.Cryptography;
 
@@ -54,4 +56,5 @@ namespace System.IdentityModel.Protocols.WSTrust
                        return b;
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index cb4581a331579f3d8c90a625249a3bb7eaa13766..403b4200900755f95a8205f6907762351ef22fcf 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 
 namespace System.IdentityModel.Protocols.WSTrust
@@ -43,4 +45,5 @@ namespace System.IdentityModel.Protocols.WSTrust
                        if (expires.HasValue) { Expires = expires.Value.ToUniversalTime (); }
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index cc237147029a1d380a9505ae2906b74812e55ba8..d04010538ab7a263a0c062ee7ac560d4ad15e86e 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Tokens;
 
@@ -49,4 +51,5 @@ namespace System.IdentityModel.Protocols.WSTrust
                        return secret;
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index c6d4a36a982c6b0bfde2c0d2f8d58d3536e065da..f374d023a72f32cb9ee46e353503e249880653d8 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.IdentityModel.Tokens;
 
 namespace System.IdentityModel.Protocols.WSTrust
@@ -49,4 +51,5 @@ namespace System.IdentityModel.Protocols.WSTrust
                        RequestType = message.RequestType;
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 7f32a96947901ff52c7a9f29c421a8b7c9efc2e1..098fe44ecf434f846451fcb7ddd80ff3d2f8e001 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Tokens;
 
@@ -51,4 +53,5 @@ namespace System.IdentityModel.Protocols.WSTrust
                        ProtectedKey = new ProtectedKey (secret, wrappingCredentials);
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 9814b645cafe58f3ce1d84ebc9c5186ec32543fe..21f2356ec011bbab65a8f7dba7309fc74c42574f 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Tokens;
 using System.Xml;
@@ -44,4 +46,5 @@ namespace System.IdentityModel.Protocols.WSTrust
                        SecurityTokenXml = tokenAsXml;
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 6e0198e5b5642b30bb7f974e594125885f8d6636..d4cecc7962b28e8115b3aa700c62e0357d0033a0 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 
 namespace System.IdentityModel.Protocols.WSTrust
@@ -39,4 +41,5 @@ namespace System.IdentityModel.Protocols.WSTrust
                        Reason = reason;
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index af52afa062ffc1bac58424337998b5dc42c2bee4..ad75cffe6232d4b5b7ea4c6df54850cf5deaacae 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Tokens;
 
@@ -51,4 +53,5 @@ namespace System.IdentityModel.Protocols.WSTrust
                        Token = token;
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index a4bf62a2dabc6705688101c4891b3902471ed724..d4f6f7be8e8b7a11f03af1cac952fb9f6b5a8fcd 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel;
 
@@ -52,4 +54,5 @@ namespace System.IdentityModel.Protocols.WSTrust
                public string TokenType { get; set; }
                public UseKey UseKey { get; set; }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index e48b1a04cf8a4c5c7b9235b8d503e304dfa91787..94dcef0fc615c06cf8683b1bee1134bda639db2b 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.Collections.ObjectModel;
 using System.IdentityModel.Selectors;
 
@@ -45,4 +47,5 @@ namespace System.IdentityModel.Tokens
                        AudienceMode = audienceMode;
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 0912787f82d63cc4c7203181c1ff67f082799f9f..22bb5501bfc2013f0fabbdf384e902326e0935c8 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.ObjectModel;
 
@@ -40,4 +42,5 @@ namespace System.IdentityModel.Tokens
                        Authorities = new Collection<string> ();
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 9054680067a04bb8933ffa9901474bd381915fbd..b5aa22e80597eb7885d7567253d7ff51a4723fe8 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.ObjectModel;
 using System.IdentityModel.Tokens;
@@ -41,4 +43,5 @@ namespace System.Security.Claims
                public Nullable<DateTime> NotOnOrAfter { get; set; }
                public String Session { get; set; }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 50cb90aa10a05a5737a0ee259ae28ac649bbd16c..c47d45ae79e5ac8818de48f1421729239a30ae46 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
+using System;
+
 namespace System.IdentityModel.Tokens
 {
        public class EncryptingCredentials
@@ -42,4 +46,5 @@ namespace System.IdentityModel.Tokens
                        Algorithm = algorithm;
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index f210c3459286ef8215fdd646610496a39a3cd10c..ad1d2f96a577cb760aab5f04213e407aded65628 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.IdentityModel.Configuration;
 using System.Xml;
 
@@ -49,4 +51,5 @@ namespace System.IdentityModel.Tokens
                        throw new NotImplementedException ();
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index e7dd13921093d11a455bf22949e2508fd76acdf4..74bcb6fa748c92b8bb0bcf912328c7c1f0f22973 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System.IdentityModel.Protocols.WSTrust;
 
 namespace System.IdentityModel.Tokens
@@ -35,4 +37,5 @@ namespace System.IdentityModel.Tokens
 
                public abstract void ApplyTo (RequestSecurityTokenResponse response);
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 435b99ceba8828fbf8fb85118d2e752479560ec2..52b8681bac0050b827ee0b1b4cc7840ffbe88a4e 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.Generic;
 using System.Text;
@@ -68,4 +70,5 @@ namespace System.IdentityModel.Tokens
                        throw new NotImplementedException ();
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 1631e699caa0fddecdaae813a00f7d8fbbe80095..5dec724b948eb8045f11a06e49753133137502c7 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.ObjectModel;
 using System.IdentityModel.Configuration;
@@ -117,4 +119,5 @@ namespace System.IdentityModel.Tokens
                        throw new NotImplementedException ();
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 1496dc0eee0bfea4515cf1ed23229e1afd3f1f73..a3a3fcea8b17fb760e472848b8668e822d6d02b8 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
@@ -191,4 +193,5 @@ namespace System.IdentityModel.Tokens
                        throw new NotImplementedException ();
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 6b0eb95f7c54f3e04788d5055db7c73e8684bef9..00e967fe148fdfcdae34deac8d683d69fd2a5969 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Configuration;
 using System.IdentityModel.Selectors;
@@ -60,4 +62,5 @@ namespace System.IdentityModel.Tokens
                public TimeSpan TokenReplayCacheExpirationPeriod { get; set; }
                public StoreLocation TrustedStoreLocation { get; set; }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index f475867494829654c197a3f7d8cd1d8285cb140d..de60b68b10f05e8100ae4119c53372fa11ad35f2 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.ObjectModel;
 using System.Runtime.Serialization;
@@ -103,4 +105,5 @@ namespace System.IdentityModel.Tokens
                        throw new NotImplementedException ();
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 5b008eaae93d334ca4accb312366e01375e8969a..c3c8739bcda129220ebeb20f80645c3876b6f3a9 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.Generic;
 using System.IdentityModel.Configuration;
@@ -45,4 +47,5 @@ namespace System.IdentityModel.Tokens
                public abstract void RemoveAll (string endpointId);
                public abstract void RemoveAll (string endpointId, UniqueId contextId);
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 474f7f1c2b9fbb38ba6e629aa217218b2d2bd79a..943c75bcb94e244a9f7c73b4659bc694069b6411 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Xml;
 
@@ -68,4 +70,5 @@ namespace System.IdentityModel.Tokens
                        throw new NotImplementedException ();
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index f181a83e59c25c4dc4b419696273cbf0f193d9a3..58f18fa2b719c2015b39fe33d3b90ab69c30751d 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
@@ -142,4 +144,5 @@ namespace System.IdentityModel.Tokens
                        throw new NotImplementedException ();
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index c6388b4024e86ed1d34705b93298feea816fda09..9f6d435998155d5c4bc467b8166940fa71d5608a 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.IdentityModel.Configuration;
 using System.Xml;
@@ -46,4 +48,5 @@ namespace System.IdentityModel.Tokens
 
                public abstract void Remove (string key);
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 26f479cfedf0d11306c7b4cf9525fc68ec8f4e8c..eeabc38551f9b88cd185c8a509732891eb2c2f30 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Security.Cryptography.X509Certificates;
 
@@ -56,4 +58,5 @@ namespace System.IdentityModel.Tokens
                        return new SecurityKeyIdentifier (new X509SecurityToken (certificate).CreateKeyIdentifierClause<X509RawDataKeyIdentifierClause> ());
                }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index 871eb3f99864c8d27227e4112703b8f8d61b6c90..2bd59e7f2940c71a0a25d1ce17b16ec697b9f4c2 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 
 namespace System.IdentityModel
@@ -33,4 +35,5 @@ namespace System.IdentityModel
        {
                public abstract byte[] Encode (byte[] value);
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file
index c554a42a620336ea93c1d943cc1a5d7e097ab813..e6c00bf0b5878112b847428ee527a704d4b9ac21 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if NET_4_5
+
 using System;
 using System.Collections.Generic;
 
@@ -36,4 +38,5 @@ namespace System.IdentityModel
 
                public Dictionary<string, object> Properties { get { return properties; } }
        }
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file