public static ChannelSafeHandle CreateInsecure(string target, ChannelArgsSafeHandle channelArgs) { // Increment reference count for the native gRPC environment to make sure we don't do grpc_shutdown() before destroying the server handle. // Doing so would make object finalizer crash if we end up abandoning the handle. GrpcEnvironment.GrpcNativeInit(); return(pinvoke.grpcsharp_insecure_channel_create(target, channelArgs)); }