Files
cefsharp/CefSharp/Callback/NoOpCompletionCallback.cs
T
amaitland f9c9c7fce5 Core - RequestContext.ClearHttpAuthCredentials now defaults to using NoOpCompletionCallback if callback was null
Workaround for a CEF bug which crashes if NULL is passed in as arg to CefRequestContext::ClearHttpAuthCredentials

https://github.com/cefsharp/CefSharp/issues/2957#issuecomment-555285400
2019-11-27 11:23:07 +10:00

33 lines
826 B
C#

// Copyright © 2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp.Callback
{
/// <summary>
/// Provides a callback implementation of <see cref="ICompletionCallback"/>
/// that does nothing with complete.
/// Added to workaround a CEF bug as per https://github.com/cefsharp/CefSharp/issues/2957#issuecomment-555285400
/// </summary>
public class NoOpCompletionCallback : ICompletionCallback
{
void ICompletionCallback.OnComplete()
{
}
bool ICompletionCallback.IsDisposed
{
//For now we return false
get { return false; }
}
void IDisposable.Dispose()
{
}
}
}