mirror of
https://github.com/LANCommander/BlazorMarkdownEditor.git
synced 2026-08-30 08:23:04 -04:00
36 lines
No EOL
1.1 KiB
C#
36 lines
No EOL
1.1 KiB
C#
namespace PSC.Blazor.Components.MarkdownEditor.EventsArgs
|
|
{
|
|
/// <summary>
|
|
/// Supplies the information about the data being written while uploading.
|
|
/// </summary>
|
|
public class FileWrittenEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// A default <see cref="FileWrittenEventArgs"/> constructor.
|
|
/// </summary>
|
|
/// <param name="file">File that is being read.</param>
|
|
/// <param name="position">Read offset in bytes within the file.</param>
|
|
/// <param name="data">Bytes that are being read.</param>
|
|
public FileWrittenEventArgs(FileEntry file, long position, byte[] data)
|
|
{
|
|
File = file;
|
|
Position = position;
|
|
Data = data;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the file currently being uploaded.
|
|
/// </summary>
|
|
public FileEntry File { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the current position offset based on the original data source.
|
|
/// </summary>
|
|
public long Position { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the data buffer.
|
|
/// </summary>
|
|
public byte[] Data { get; }
|
|
}
|
|
} |