This commit is contained in:
GitHubPang
2020-12-31 12:47:11 +08:00
committed by GitHub
parent 8351fac825
commit 8afe0dfca6
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ namespace CefSharp
/// can modify the response including headers, or even redirect to a new Url. Set your responseLength and headers
/// Populate the dataOut stream in ReadResponse. For those looking for a sample implementation or upgrading from
/// a previous version <see cref="ResourceHandler"/>. For those upgrading, inherit from ResourceHandler instead of IResourceHandler
/// add the override keywoard to existing methods e.g. ProcessRequestAsync.
/// add the override keyword to existing methods e.g. ProcessRequestAsync.
/// </summary>
public interface IResourceHandler : IDisposable
{
@@ -102,7 +102,7 @@ namespace CefSharp
/// <param name="bytesRead">To indicate response completion set bytesRead to 0 and return false.</param>
/// <param name="callback">set <paramref name="bytesRead"/> to 0, return true and execute callback when the data is available
/// (dataOut will remain valid until the callback is executed). If you have no need
/// of the callback then Dispose of it immeduately.</param>
/// of the callback then Dispose of it immediately.</param>
/// <returns>return true or false depending on the criteria, see summary.</returns>
bool Read(Stream dataOut, out int bytesRead, IResourceReadCallback callback);
+1 -1
View File
@@ -291,7 +291,7 @@ namespace CefSharp.Handler
}
/// <summary>
/// Called when the unamanged resource is freed.
/// Called when the unmanaged resource is freed.
/// Unmanaged resources are ref counted and freed when
/// the last reference is released, this works differently
/// to .Net garbage collection.
+4 -4
View File
@@ -60,7 +60,7 @@ namespace CefSharp
/// Gets or sets ResponseLength, when you know the size of your
/// Stream (Response) set this property. This is optional.
/// If you use a MemoryStream and don't provide a value
/// here then it will be cast and it's size used
/// here then it will be cast and its size used
/// </summary>
public long? ResponseLength { get; set; }
@@ -88,7 +88,7 @@ namespace CefSharp
/// </summary>
/// <param name="mimeType">Optional mimeType defaults to <see cref="DefaultMimeType"/></param>
/// <param name="stream">Optional Stream - must be set at some point to provide a valid response</param>
/// <param name="autoDisposeStream">When true the Stream will be disposed when this instance is Diposed, you will
/// <param name="autoDisposeStream">When true the Stream will be disposed when this instance is Disposed, you will
/// be unable to use this ResourceHandler after the Stream has been disposed</param>
/// <param name="charset">response charset</param>
public ResourceHandler(string mimeType = DefaultMimeType, Stream stream = null, bool autoDisposeStream = false, string charset = null)
@@ -230,8 +230,8 @@ namespace CefSharp
// changes to the threading model were made and I haven't confirmed if this is still
// the case.
//
// The documentation for Cancel is vaigue and there aren't any examples that
// illustrage it's intended use case so for now we'll just keep things
// The documentation for Cancel is vague and there aren't any examples that
// illustrate its intended use case so for now we'll just keep things
// simple and free our resources in Dispose
}