You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
// Copyright (c) 2019 Blazored (https://github.com/Blazored)
|
|
// Copyright (c) 2020 Jonny Larsson (https://github.com/MudBlazor/MudBlazor)
|
|
// Copyright (c) 2021 improvements by Meinrad Recheis
|
|
// See https://github.com/Blazored
|
|
// License: MIT
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace Connected.Components;
|
|
|
|
public interface IDialogReference
|
|
{
|
|
Guid Id { get; }
|
|
|
|
RenderFragment RenderFragment { get; set; }
|
|
|
|
[Obsolete("This will always return true"), ExcludeFromCodeCoverage]
|
|
bool AreParametersRendered { get => true; set { } }
|
|
|
|
Task<DialogResult> Result { get; }
|
|
|
|
internal TaskCompletionSource<bool> RenderCompleteTaskCompletionSource { get; }
|
|
|
|
void Close();
|
|
|
|
void Close(DialogResult result);
|
|
|
|
bool Dismiss(DialogResult result);
|
|
|
|
object Dialog { get; }
|
|
|
|
void InjectRenderFragment(RenderFragment rf);
|
|
|
|
void InjectDialog(object inst);
|
|
|
|
Task<T> GetReturnValueAsync<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>();
|
|
}
|