From f16db5567c9a2425dbfbe996a858329b8db7e44d Mon Sep 17 00:00:00 2001 From: amaitland Date: Fri, 15 Apr 2016 16:28:52 +1000 Subject: [PATCH] More xmldoc --- CefSharp/IStringVisitor.cs | 4 ++++ CefSharp/TaskStringVisitor.cs | 14 ++++++++++++++ CefSharp/TitleChangedEventArgs.cs | 7 +++++++ 3 files changed, 25 insertions(+) diff --git a/CefSharp/IStringVisitor.cs b/CefSharp/IStringVisitor.cs index 6a6f8cf34..c067aa54b 100644 --- a/CefSharp/IStringVisitor.cs +++ b/CefSharp/IStringVisitor.cs @@ -9,6 +9,10 @@ namespace CefSharp /// public interface IStringVisitor { + /// + /// Method that will be executed. + /// + /// string (result of async execution) void Visit(string str); } } diff --git a/CefSharp/TaskStringVisitor.cs b/CefSharp/TaskStringVisitor.cs index 8093c4b3e..d20bb35a9 100644 --- a/CefSharp/TaskStringVisitor.cs +++ b/CefSharp/TaskStringVisitor.cs @@ -6,20 +6,34 @@ using System.Threading.Tasks; namespace CefSharp { + /// + /// A that uses a TaskCompletionSource + /// to simplify things + /// public class TaskStringVisitor : IStringVisitor { private readonly TaskCompletionSource taskCompletionSource; + /// + /// Default constructor + /// public TaskStringVisitor() { taskCompletionSource = new TaskCompletionSource(); } + /// + /// Method that will be executed. + /// + /// string (result of async execution) public void Visit(string str) { taskCompletionSource.SetResult(str); } + /// + /// Task that can be awaited for the result to be retrieved async + /// public Task Task { get { return taskCompletionSource.Task; } diff --git a/CefSharp/TitleChangedEventArgs.cs b/CefSharp/TitleChangedEventArgs.cs index 0132143e0..e067a0a47 100644 --- a/CefSharp/TitleChangedEventArgs.cs +++ b/CefSharp/TitleChangedEventArgs.cs @@ -11,8 +11,15 @@ namespace CefSharp /// public class TitleChangedEventArgs : EventArgs { + /// + /// The new title + /// public string Title { get; private set; } + /// + /// Creates a new TitleChanged event arg + /// + /// the new title public TitleChangedEventArgs(string title) { Title = title;