protected override async ValueTask DisposeAsync(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                AnimatedNavigationService.DeregisterNavigationComponent(this);
            }

            _disposed = true;

            await base.DisposeAsync(disposing);
        }
Example #2
0
        protected override void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                AnimatedNavigationService.DeregisterNavigationComponent(this);
            }

            _disposed = true;

            base.Dispose(disposing);
        }
        // Would like to use <inheritdoc/> however DocFX cannot resolve to references outside Material.Blazor
        protected override async Task OnInitializedAsync()
        {
            await base.OnInitializedAsync();

            AnimatedNavigationService.RegisterNavigationComponent(this);
        }
Example #4
0
        // Would like to use <inheritdoc/> however DocFX cannot resolve to references outside Material.Blazor
        protected override void OnInitialized()
        {
            base.OnInitialized();

            AnimatedNavigationService.RegisterNavigationComponent(this);
        }