private curl_global_init ( int flags ) : CurlCode | ||
flags | int | |
return | CurlCode |
/// <summary> /// Process-wide initialization -- call only once per process. /// </summary> /// <param name="flags"> /// An or'd combination of /// <see cref="CurlInitFlag" /> members. /// </param> /// <returns> /// A <see cref="CurlCode" />, hopefully /// <c>CurlCode.Ok</c>. /// </returns> public static CurlCode GlobalInit(CurlInitFlag flags) { _initCode = NativeMethods.curl_global_init((int)flags); #if USE_LIBCURLSHIM if (_initCode == CurlCode.Ok) { NativeMethods.curl_shim_initialize(); } #endif return(_initCode); }