File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
src/BootstrapBlazor.Server/Components/Samples Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ namespace BootstrapBlazor.Server.Components.Samples;
1010/// <summary>
1111/// AvatarUpload sample code
1212/// </summary>
13- public partial class UploadAvatars : IDisposable
13+ public partial class UploadAvatars
1414{
15- private static readonly long MaxFileLength = 5 * 1024 * 1024 ;
16- private CancellationTokenSource ? _token ;
1715 private readonly List < UploadFile > _previewFileList = [ ] ;
1816 private readonly Person _foo = new ( ) ;
1917 private bool _isUploadButtonAtFirst ;
@@ -47,15 +45,6 @@ private Task OnAvatarInValidSubmit(EditContext context)
4745 return ToastService . Error ( Localizer [ "UploadsValidateFormTitle" ] , Localizer [ "UploadsValidateFormInValidContent" ] ) ;
4846 }
4947
50- /// <summary>
51- /// <inheritdoc/>
52- /// </summary>
53- public void Dispose ( )
54- {
55- _token ? . Cancel ( ) ;
56- GC . SuppressFinalize ( this ) ;
57- }
58-
5948 private List < AttributeItem > GetAttributes ( ) =>
6049 [
6150 new ( )
You can’t perform that action at this time.
0 commit comments