static AndroidPlatform () { var t = Type.GetType ("Android.Runtime.AndroidEnvironment, Mono.Android", throwOnError:true); #if SECURITY_DEP trustEvaluateSsl = (Converter<List<byte[]>, bool>) Delegate.CreateDelegate (typeof (Converter<List<byte[]>, bool>), t, "TrustEvaluateSsl", ignoreCase:false, throwOnBindFailure:true); #endif // SECURITY_DEP getDefaultProxy = (Func<IWebProxy>)Delegate.CreateDelegate ( typeof (Func<IWebProxy>), t, "GetDefaultProxy", ignoreCase:false, throwOnBindFailure:true); getInterfaceAddresses = (GetInterfaceAddressesDelegate)Delegate.CreateDelegate ( typeof (GetInterfaceAddressesDelegate), t, "GetInterfaceAddresses", ignoreCase: false, throwOnBindFailure: false); freeInterfaceAddresses = (FreeInterfaceAddressesDelegate)Delegate.CreateDelegate ( typeof (FreeInterfaceAddressesDelegate), t, "FreeInterfaceAddresses", ignoreCase: false, throwOnBindFailure: false); }
static AndroidPlatform() { var t = Type.GetType("Android.Runtime.AndroidEnvironment, Mono.Android", throwOnError: true); #if SECURITY_DEP trustEvaluateSsl = (Converter <List <byte[]>, bool>) Delegate.CreateDelegate(typeof(Converter <List <byte[]>, bool>), t, "TrustEvaluateSsl", ignoreCase: false, throwOnBindFailure: true); #endif // SECURITY_DEP getDefaultProxy = (Func <IWebProxy>)Delegate.CreateDelegate( typeof(Func <IWebProxy>), t, "GetDefaultProxy", ignoreCase: false, throwOnBindFailure: true); getInterfaceAddresses = (GetInterfaceAddressesDelegate)Delegate.CreateDelegate( typeof(GetInterfaceAddressesDelegate), t, "GetInterfaceAddresses", ignoreCase: false, throwOnBindFailure: false); freeInterfaceAddresses = (FreeInterfaceAddressesDelegate)Delegate.CreateDelegate( typeof(FreeInterfaceAddressesDelegate), t, "FreeInterfaceAddresses", ignoreCase: false, throwOnBindFailure: false); }
static AndroidPlatform() { var t = Type.GetType("Android.Runtime.AndroidEnvironment, Mono.Android", throwOnError: true); #if SECURITY_DEP trustEvaluateSsl = (Converter <List <byte[]>, bool>) Delegate.CreateDelegate(typeof(Converter <List <byte[]>, bool>), t, "TrustEvaluateSsl", ignoreCase: false, throwOnBindFailure: true); #if MONO_FEATURE_BTLS certStoreLookup = (Func <long, bool, byte[]>) Delegate.CreateDelegate(typeof(Func <long, bool, byte[]>), t, "CertStoreLookup", ignoreCase: false, throwOnBindFailure: true); #endif // MONO_FEATURE_BTLS SystemDependencyProvider.Initialize(); #endif // SECURITY_DEP getDefaultProxy = (Func <IWebProxy>)Delegate.CreateDelegate( typeof(Func <IWebProxy>), t, "GetDefaultProxy", ignoreCase: false, throwOnBindFailure: true); getInterfaceAddresses = (GetInterfaceAddressesDelegate)Delegate.CreateDelegate( typeof(GetInterfaceAddressesDelegate), t, "GetInterfaceAddresses", ignoreCase: false, throwOnBindFailure: false); freeInterfaceAddresses = (FreeInterfaceAddressesDelegate)Delegate.CreateDelegate( typeof(FreeInterfaceAddressesDelegate), t, "FreeInterfaceAddresses", ignoreCase: false, throwOnBindFailure: false); }