File: CascadingParameterSubscription.cs
Web Access
Project: src\src\Components\Components\src\Microsoft.AspNetCore.Components.csproj (Microsoft.AspNetCore.Components)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Components;
 
/// <summary>
/// This class represents an active subscription to a cascading parameter. The implementation is responsible for providing the current value and notifying about changes by causing the subscriber component to re-render when necessary.
/// </summary>
public abstract class CascadingParameterSubscription : IDisposable
{
    /// <summary>
    /// Function that returns the current value for the subscription.
    /// </summary>
    public abstract object? GetCurrentValue();
 
    /// <inheritdoc/>
    public abstract void Dispose();
}