Пример #1
0
 /// <summary>
 /// Creates a new context object with the specified |settings| and optional
 /// |handler|.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_request_context_capi.h">cef/include/capi/cef_request_context_capi.h</see>.
 /// </remarks>
 public static CfxRequestContext CreateContext(CfxRequestContextSettings settings, CfxRequestContextHandler handler)
 {
     return(CfxRequestContext.Wrap(CfxApi.cfx_request_context_create_context(CfxRequestContextSettings.Unwrap(settings), CfxRequestContextHandler.Unwrap(handler))));
 }
Пример #2
0
 /// <summary>
 /// Creates a new context object that shares storage with |other| and uses an
 /// optional |handler|.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_request_context_capi.h">cef/include/capi/cef_request_context_capi.h</see>.
 /// </remarks>
 public static CfxRequestContext CreateContextShared(CfxRequestContext other, CfxRequestContextHandler handler)
 {
     return(CfxRequestContext.Wrap(CfxApi.cfx_create_context_shared(CfxRequestContext.Unwrap(other), CfxRequestContextHandler.Unwrap(handler))));
 }