blazor

Sending Push Notifications to iOS from PWA

六眼飞鱼酱① 提交于 2021-01-21 04:09:07
问题 I'm sorry, I know this question has been asked before but I couldn't find updated answer. I've got a Progressive Web App which made with Blazor WebAssembly and I was wondering if I can send push notifications to iOS devices? Although people said if works now on Safari on MacOS, Push API's website says that it does not support Safari on iOS. Do I need to wrap every web app if I target iOS? I don't have a MacBook, do I need to buy one just to achieve this? Also there are Firebase and Azure

How do I update multiple users on Blazor Server-Side?

只愿长相守 提交于 2021-01-20 20:32:13
问题 Suppose I want a UI where users in a group have a synchronized view. Imagine a group-chat application, where everyone in the group should see the exact same messages. When a user posts a message to the group, the entire group needs to receive it. With JS, I might use SignalR Groups, and have the front-end generate a SignalR event with a message is posted. The server-side hub would then send that message out to the group. On Server-Side Blazor, since all the users' states are already on the

How to use both Blazor client and server in same web

喜你入骨 提交于 2021-01-20 08:14:39
问题 I'm learning about the Blazor , and see benefit of 2 types client-side and server-side . I want to use both on the same web e.g. one path is a client-side WebAssembly app, another path is a server-side that run code in server. I have seen Blazor Full-Stack template (not quite understand) but it missing from latest templates package. Did they remove it on purpose? (only 2 left Blazor Server App and Blazor WebAssembly App ) I download templates from this command. dotnet new -i Microsoft

Get current (logged) user in ASP.NET Core 3.0 .razor page

痞子三分冷 提交于 2021-01-18 06:25:09
问题 I'm testing the waters with a blazer server-side app and trying to get the logged user in a .razor page. This UserManager.GetUserAsync(User) works in .cshtml view, but I cannot find a way to get it to work in .razor page. There is no "User" property to access. I use the IdentityUser with my ApplicationUser model that extends IdentityUser. I'm using AspNetCore 3.0 Preview 6. 回答1: If you surround your code with the AuthorizeView component you can get access to a context object that supplies the

Get current (logged) user in ASP.NET Core 3.0 .razor page

眉间皱痕 提交于 2021-01-18 06:23:48
问题 I'm testing the waters with a blazer server-side app and trying to get the logged user in a .razor page. This UserManager.GetUserAsync(User) works in .cshtml view, but I cannot find a way to get it to work in .razor page. There is no "User" property to access. I use the IdentityUser with my ApplicationUser model that extends IdentityUser. I'm using AspNetCore 3.0 Preview 6. 回答1: If you surround your code with the AuthorizeView component you can get access to a context object that supplies the

Get current (logged) user in ASP.NET Core 3.0 .razor page

别说谁变了你拦得住时间么 提交于 2021-01-18 06:23:46
问题 I'm testing the waters with a blazer server-side app and trying to get the logged user in a .razor page. This UserManager.GetUserAsync(User) works in .cshtml view, but I cannot find a way to get it to work in .razor page. There is no "User" property to access. I use the IdentityUser with my ApplicationUser model that extends IdentityUser. I'm using AspNetCore 3.0 Preview 6. 回答1: If you surround your code with the AuthorizeView component you can get access to a context object that supplies the

Get current (logged) user in ASP.NET Core 3.0 .razor page

血红的双手。 提交于 2021-01-18 06:23:03
问题 I'm testing the waters with a blazer server-side app and trying to get the logged user in a .razor page. This UserManager.GetUserAsync(User) works in .cshtml view, but I cannot find a way to get it to work in .razor page. There is no "User" property to access. I use the IdentityUser with my ApplicationUser model that extends IdentityUser. I'm using AspNetCore 3.0 Preview 6. 回答1: If you surround your code with the AuthorizeView component you can get access to a context object that supplies the

7月30日 举办专注于微服务的.NET Conf Focus

女生的网名这么多〃 提交于 2021-01-17 18:52:24
2020 年 7 月 30 日, 由.NET基金会和微软 将举办一个在线和为期一天的活动,包括 微软 .NET 团队的演讲者以及社区的演讲者。本次在线大会 专注.NET框架构建微服务,演讲者分享构建和部署云原生应用程序的最佳实践、模式、提示和技巧。有关更多信息和随时了解情况:https://focus.dotnetconf.net/. 下面和大家几个重量级的分享嘉宾: Scott Hunter, Director of Program Management, .NET David Fowler, Partner Software Architect, Microsoft, Brendan Burns, Corporate Vice President, Microsoft und Kelsey Hightower, Developer Advocate, Google Jessica Deen, Sr. Cloud Developer Advocate, Microsoft Elton Stoneman, Director, Sixeyed Consulting .NET Conf:Focus 系列是 Microsoft 和.NET基金会 提供并重点介绍围绕 .NET 的特定主题的一系列小型实时活动。该系列的第一次会议于2020年1月举行,以Blazor为主题

C# counter to count up to a target number

梦想与她 提交于 2021-01-07 01:22:42
问题 I'm trying to find out if anyone knows about an already existing c# plugin that will count up to a target number at a specified speed. I'd like to be able to specify: The start number The end number The amount of time it should take to get from start to end. A custom callback function that can execute when a counter is finished. I found these plugins one for javascript and one for asp.net: https://inorganik.github.io/countUp.js/ https://www.nuget.org/packages/Wisej-2-CountUp/ I am making an

C# counter to count up to a target number

…衆ロ難τιáo~ 提交于 2021-01-07 01:22:07
问题 I'm trying to find out if anyone knows about an already existing c# plugin that will count up to a target number at a specified speed. I'd like to be able to specify: The start number The end number The amount of time it should take to get from start to end. A custom callback function that can execute when a counter is finished. I found these plugins one for javascript and one for asp.net: https://inorganik.github.io/countUp.js/ https://www.nuget.org/packages/Wisej-2-CountUp/ I am making an