Skip to content

feat: Add IToastService, IMesssageService, IDialogService to a new library Microsoft.FluentUI.AspNetCore.Components.Abstractions #1484

@davte-beijer

Description

@davte-beijer

🙋 Feature Request

I would like to use the following services: IToastService, IMesssageService, IDialogService without having to have a reference to the full Microsoft.FluentUI.AspNetCore.Components package, instead I would like to use something like Microsoft.FluentUI.AspNetCore.Components.Abstractions.

This would allows me to e.g. inject these services view models that are not in the same project as my Blazor UI code.

💁 Possible Solution

Microsoft.FluentUI.AspNetCore.Components package is separated into

  • Microsoft.FluentUI.AspNetCore.Components
  • Microsoft.FluentUI.AspNetCore.Components.Abstractions.

🔦 Context

If doing MVVM together with fluent-ui blazor, the simplest workaround is to put all view models inside razor.class lib or wherever the UI blazor components exists, however idealy I would prefer a finer level on granularity and separation between my view models and UI code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-investigationNeeds additional investigationv5For the next major version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions