Exemplo n.º 1
0
        /// <inheritdoc/>
        public virtual async ValueTask Unregister(ICloseActivator component)
        {
            if (moduleTask != null)
            {
                var moduleInstance = await moduleTask;

                await moduleInstance.InvokeVoidAsync("unregisterClosableComponent", component.ElementRef);
            }
        }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public virtual async ValueTask Unregister(ICloseActivator component)
        {
            if (IsUnsafe)
            {
                return;
            }

            var moduleInstance = await Module;

            await moduleInstance.InvokeVoidAsync("unregisterClosableComponent", component.ElementRef);
        }
Exemplo n.º 3
0
 public ValueTask <object> UnregisterClosableComponent(ICloseActivator component)
 {
     return(runtime.InvokeAsync <object>($"{BLAZORISE_NAMESPACE}.unregisterClosableComponent", component.ElementId));
 }
Exemplo n.º 4
0
 public Task RegisterClosableComponent(ICloseActivator component)
 {
     return(JSRuntime.Current.InvokeAsync <object>($"{BLAZORISE_NAMESPACE}.registerClosableComponent", component.ElementId, new DotNetObjectRef(new CloseActivatorAdapter(component))));
 }
Exemplo n.º 5
0
 public ValueTask UnregisterClosableComponent(ICloseActivator component)
 {
     return(runtime.InvokeVoidAsync($"{BLAZORISE_NAMESPACE}.unregisterClosableComponent", component.ElementRef));
 }
Exemplo n.º 6
0
 public CloseActivatorAdapter(ICloseActivator component)
 {
     this.component = component;
 }