/// <inheritdoc/> public virtual async ValueTask Unregister(ICloseActivator component) { if (moduleTask != null) { var moduleInstance = await moduleTask; await moduleInstance.InvokeVoidAsync("unregisterClosableComponent", component.ElementRef); } }
/// <inheritdoc/> public virtual async ValueTask Unregister(ICloseActivator component) { if (IsUnsafe) { return; } var moduleInstance = await Module; await moduleInstance.InvokeVoidAsync("unregisterClosableComponent", component.ElementRef); }
public ValueTask <object> UnregisterClosableComponent(ICloseActivator component) { return(runtime.InvokeAsync <object>($"{BLAZORISE_NAMESPACE}.unregisterClosableComponent", component.ElementId)); }
public Task RegisterClosableComponent(ICloseActivator component) { return(JSRuntime.Current.InvokeAsync <object>($"{BLAZORISE_NAMESPACE}.registerClosableComponent", component.ElementId, new DotNetObjectRef(new CloseActivatorAdapter(component)))); }
public ValueTask UnregisterClosableComponent(ICloseActivator component) { return(runtime.InvokeVoidAsync($"{BLAZORISE_NAMESPACE}.unregisterClosableComponent", component.ElementRef)); }
public CloseActivatorAdapter(ICloseActivator component) { this.component = component; }