From the course: Creating .NET MAUI Applications with Blazor

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

How about native APIs?

How about native APIs?

- [Instructor] Here we have opened the MAUI Notes app that we have been working on. In the starting code for this lesson, I have added a Blazor web assembly project that we want to share code with the notes. The Notes.Core project has the services interfaces and note model that have existed in the MAUI Notes app application. So if we look under here, here's the interfaces and here is the note model. This is a pretty standard way of sharing code and in this case, the primary thing we are sharing isn't code, but interfaces. Interfaces allow us to write code against a known API without necessarily knowing what the implementation is. This means that we can have one implementation within the MAUI application and another implementation for the browser. I have already set up three of the services in the WasmNotes project. So if we open this up and look under services we can see we have the global navigation login service and…

Contents