private NativeExtension() { this.nativeMethods = new NativeMethods(Load()); // Redirect the the native logs as the very first thing after loading the native extension // to make sure we don't lose any logs. NativeLogRedirector.Redirect(this.nativeMethods); Logger.Debug("gRPC native library loaded successfully."); }
private NativeExtension() { this.nativeMethods = LoadNativeMethods(); // Redirect the native logs as the very first thing after loading the native extension // to make sure we don't lose any logs. NativeLogRedirector.Redirect(this.nativeMethods); // Initialize NativeCallbackDispatcher.Init(this.nativeMethods); DefaultSslRootsOverride.Override(this.nativeMethods); Logger.Debug("gRPC native library loaded successfully."); }
private NativeExtension() { #if !UNITY_EDITOR && UNITY_IOS this.nativeMethods = new NativeMethods(); #else this.nativeMethods = new NativeMethods(Load()); #endif // Redirect the the native logs as the very first thing after loading the native extension // to make sure we don't lose any logs. NativeLogRedirector.Redirect(this.nativeMethods); DefaultSslRootsOverride.Override(this.nativeMethods); Logger.Debug("gRPC native library loaded successfully."); }