More xmldoc

This commit is contained in:
amaitland
2016-04-15 16:28:52 +10:00
parent 560fa2b867
commit f16db5567c
3 changed files with 25 additions and 0 deletions
+4
View File
@@ -9,6 +9,10 @@ namespace CefSharp
/// </summary>
public interface IStringVisitor
{
/// <summary>
/// Method that will be executed.
/// </summary>
/// <param name="str">string (result of async execution)</param>
void Visit(string str);
}
}
+14
View File
@@ -6,20 +6,34 @@ using System.Threading.Tasks;
namespace CefSharp
{
/// <summary>
/// A <see cref="IStringVisitor"/> that uses a TaskCompletionSource
/// to simplify things
/// </summary>
public class TaskStringVisitor : IStringVisitor
{
private readonly TaskCompletionSource<string> taskCompletionSource;
/// <summary>
/// Default constructor
/// </summary>
public TaskStringVisitor()
{
taskCompletionSource = new TaskCompletionSource<string>();
}
/// <summary>
/// Method that will be executed.
/// </summary>
/// <param name="str">string (result of async execution)</param>
public void Visit(string str)
{
taskCompletionSource.SetResult(str);
}
/// <summary>
/// Task that can be awaited for the result to be retrieved async
/// </summary>
public Task<string> Task
{
get { return taskCompletionSource.Task; }
+7
View File
@@ -11,8 +11,15 @@ namespace CefSharp
/// </summary>
public class TitleChangedEventArgs : EventArgs
{
/// <summary>
/// The new title
/// </summary>
public string Title { get; private set; }
/// <summary>
/// Creates a new TitleChanged event arg
/// </summary>
/// <param name="title">the new title</param>
public TitleChangedEventArgs(string title)
{
Title = title;