diff --git a/CefSharp/TaskStringVisitor.cs b/CefSharp/TaskStringVisitor.cs index 3957c27c7..a389309ad 100644 --- a/CefSharp/TaskStringVisitor.cs +++ b/CefSharp/TaskStringVisitor.cs @@ -2,6 +2,7 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; using System.Threading.Tasks; using CefSharp.Internals; @@ -27,7 +28,7 @@ namespace CefSharp /// Method that will be executed. /// /// string (result of async execution) - public void Visit(string str) + void IStringVisitor.Visit(string str) { taskCompletionSource.TrySetResultAsync(str); } @@ -40,7 +41,7 @@ namespace CefSharp get { return taskCompletionSource.Task; } } - public void Dispose() + void IDisposable.Dispose() { }