public GenerateCookieCallbackThunk(GenerateCookieCallback callback) { _local_callback = callback; if (callback != null) { NativeCallback = OnCallback; } else { NativeCallback = null; } }
public void SetCookieGenerateCallback(GenerateCookieCallback callback) { Native.SSL_CTX_set_cookie_generate_cb(this.ptr, (new GenerateCookieCallbackThunk(callback)).NativeCallback); }
public GenerateCookieCallbackThunk(GenerateCookieCallback callback) { _local_callback = callback; if(callback != null) { NativeCallback = OnCallback; } else { NativeCallback = null; } }