microsoft-graph-toolkit icon indicating copy to clipboard operation
microsoft-graph-toolkit copied to clipboard

Investigate using components with Blazor

Open nmetulev opened this issue 5 years ago • 5 comments

Proposal: Investigate using components with Blazor

Description

Now that Blazor is no longer experimental, we should investigate what it would take to leverage toolkit components in Blazor.

Rationale

Blazor allows developers to use C# for their front end code (instead of JavaScript). The toolkit is intended for front end developers.

Preferred Solution

If the components 'just work' with Blazor, then the results of this investigation should be a sample in the samples folder. Otherwise, if there is work required, the result should be a write up (as part of a new issue) of what work is required to add support.

nmetulev avatar May 15 '19 00:05 nmetulev

Are you looking to evaluate Blazor Server or Blazor WebAssembly (client)?

BrianTJackett avatar Oct 01 '19 18:10 BrianTJackett

I'd say both. This was a community request that I've captured here, but i think it covers more than just Blazor. Things the toolkit should handle (or at least have answers for) are how do we handle defining components in Razor, supporting server side auth (behalf of flow), how do we handle interoperability between C# and JS, and more?

nmetulev avatar Oct 01 '19 21:10 nmetulev

Thanks for posting this request. I assume the existing components should "just work" in a Blazor app. However, from a "no cliffs" perspective, first-class Blazor components that can be manipulated with C# (i.e. events and properties and intellisense) would be the most natural development experience for Blazor developers, and bridge these two rapidly growing developer communities.

dcuccia avatar May 21 '20 17:05 dcuccia

I agree, the components should just work, but we have not tested them. First-class Blazor components sounds great and we'd love help from the community with the right expertise on this one

nmetulev avatar Jun 01 '20 16:06 nmetulev

First class Blazor components would be great.

I've created a small example program which calls Graph API from Blazor Server. It handles all the auth using Microsoft.Identity.Web

https://github.com/wmgdev/BlazorGraphApi

It would be nice if I could add some example toolkit components to this.

wmgdev avatar Jun 05 '20 08:06 wmgdev