随笔分类 -  Asp.Net Core

摘要:https://chrissainty.com/securing-your-blazor-apps-configuring-role-based-authorization-with-client-side-blazor/ 阅读全文
posted @ 2021-04-29 11:24 Javi 阅读(111) 评论(0) 推荐(0)
摘要:Razor is a templating engine that combines C# with HTML to build dynamic web content. Blazor is a component-based, single-page app framework for build 阅读全文
posted @ 2021-04-20 10:33 Javi 阅读(86) 评论(0) 推荐(0)
摘要:Blazor WebAssembly 主要的 Blazor 托管模型在 WebAssembly 上的浏览器中运行客户端。 将 Blazor 应用、其依赖项以及 .NET 运行时下载到浏览器。 应用将在浏览器线程中直接执行。 UI 更新和事件处理在同一进程中进行。 应用资产作为静态文件部署到可为客户端 阅读全文
posted @ 2021-04-20 10:32 Javi 阅读(2942) 评论(0) 推荐(1)
摘要:Blazor 是一个使用 .NET 生成交互式客户端 Web UI 的框架: 使用 C# 代替 JavaScript 来创建丰富的交互式 UI。 共享使用 .NET 编写的服务器端和客户端应用逻辑。 将 UI 呈现为 HTML 和 CSS,以支持众多浏览器,其中包括移动浏览器。 与新式托管平台(如  阅读全文
posted @ 2020-06-24 11:50 Javi 阅读(310) 评论(0) 推荐(0)
摘要:将 gRPC 服务添加到 ASP.NET Core 应用 gRPC 需要gRPC包。 配置 gRPC 在 Startup.cs 中: gRPC 是通过AddGrpc方法启用的。 每个 gRPC 服务通过MapGrpcService方法添加到路由管道。 C#复制 ASP.NET Core 中间件和功能 阅读全文
posted @ 2019-10-28 16:12 Javi 阅读(1044) 评论(0) 推荐(0)
摘要:安装.NET Core 首先需要安装.NET Core Runtime: https://www.microsoft.com/net/download 点击之后,根据您的Linux发行版不同,选择相应的操作步骤: 最后执行dotnet --info验证安装是否成功: 安装Nginx 另外还需要安装N 阅读全文
posted @ 2019-04-03 11:19 Javi 阅读(287) 评论(0) 推荐(0)
摘要:It looks great! https://devblogs.microsoft.com/odata/asp-net-core-odata-now-available/ 阅读全文
posted @ 2019-03-22 16:01 Javi 阅读(250) 评论(0) 推荐(0)
摘要:ASP.NET Core offers attributes such as [HttpGet] and [HttpPost] that allow you to restrict the HTTP verbs used to invoke an action. You can also use H 阅读全文
posted @ 2018-09-05 10:13 Javi 阅读(295) 评论(0) 推荐(0)
摘要:In this article, I am going to explain ,"How to Upload Images to the server using Cordova File Transfer Plugin and Asp.Net core Web API". Requirements 阅读全文
posted @ 2018-07-19 11:34 Javi 阅读(593) 评论(0) 推荐(0)
摘要:This is something that strangely doesn’t seem to be that well documented and took me a while to figure out though in the end it’s pretty simple. All t 阅读全文
posted @ 2018-07-17 15:31 Javi 阅读(678) 评论(0) 推荐(0)
摘要:1.新建Netcore Web项目 2.创建简易通讯协议 SenderID发送者ID ReceiverID 接受者ID MessageType 消息类型 Text Voice 等等 Content 消息内容 3.添加中间件ChatWebSocketMiddleware 4.在Startup.cs中使 阅读全文
posted @ 2018-07-13 08:18 Javi 阅读(2716) 评论(0) 推荐(0)
摘要:System.IO.Pipelines是一个新的库,旨在简化在.NET中执行高性能IO的过程。它是一个依赖.NET Standard的库,适用于所有.NET实现。 Pipelines诞生于.NET Core团队,为使Kestrel成为业界最快的Web服务器之一。最初从作为Kestrel内部的实现细节 阅读全文
posted @ 2018-07-13 08:15 Javi 阅读(963) 评论(0) 推荐(2)
摘要:原文: Announcing .NET Core 2.1 我们很高兴可以发布 .NET Core 2.1。这次更新包括对性能的改进,对运行时和工具的改进。还包含一种以 NuGet 包的形式部署工具的新方法。我们添加了一个名为 Span<T> 的新基元类型,它可以在没有内存分配的情况下对数据进行操作。 阅读全文
posted @ 2018-06-01 12:30 Javi 阅读(2023) 评论(0) 推荐(0)
摘要:I recently installed the dotnet 1.11.0 Windows Server Hosting package which apparently installs the .NET Core Runtime. I did so on my development box. 阅读全文
posted @ 2018-05-08 15:49 Javi 阅读(2964) 评论(0) 推荐(0)
摘要:在Win7的机器上部署ASP.Net Core程序,老是提示502.5错误。 已经安装了 Microsoft Visual C++ 2015 Redistributable .NET Core Windows Server Hosting bundle 对应版本的.Net Core SDK, 但程序 阅读全文
posted @ 2018-05-08 15:48 Javi 阅读(16863) 评论(6) 推荐(4)
摘要:概要:1.简单ViewComponent的用法 2.ViewComponent控制器返回值 3.注意事项 1.简单ViewComponent的用法 第一步:创建ASP.NET CORE Web应用程序,并在网站根目录创建 ViewComponents 文件夹 第二部:在ViewComponents文 阅读全文
posted @ 2018-03-28 09:36 Javi 阅读(994) 评论(0) 推荐(0)
摘要:视图组件 ViewComponent 最近用了一下视图组件,还挺方便的,如果遇到公共的部分,可以抽出来,写成视图组件,方便调用 先上图看一下效果:比如首页的4个画红框的地方是4个模块,有些地方可能要重复用到,那么我们用视图组件就很方便。 开始编码步骤 第二步,添加视图组件类 创建类过程中,必须要以N 阅读全文
posted @ 2018-03-28 09:35 Javi 阅读(1256) 评论(0) 推荐(2)
摘要:迁移方法 1.首先在解决方案中引入System.Configuration.ConfigurationManager,只有引入它才可以让我们已有的读取web.config代码起作用. 2. 导入web.config文件到项目根目录,并将名称修改为app.config. 因为.NET Core的项目本 阅读全文
posted @ 2018-03-09 09:10 Javi 阅读(1084) 评论(0) 推荐(0)
摘要:cmd > cd ... dotnet myapp.dll 阅读全文
posted @ 2018-01-23 09:29 Javi 阅读(137) 评论(0) 推荐(0)
摘要:using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInject... 阅读全文
posted @ 2017-12-12 14:09 Javi 阅读(495) 评论(0) 推荐(0)