hi
We will gradually optimize these situations during the subsequent development process, : )
Thanks.
你可以分享一个demo项目吗?
liming.ma@volosoft.com
谢谢
hi
Can you test this commit again?
https://github.com/RobertoFiocchiMCSI/Cdi.Grc.AbpSupport/commit/3d30f273f4b0e612048400d00de86c7d1fe4ba66 Thanks
ok, I think it will work.
ok, can you test only src/Cdi.Grc.Blazor.Client/Components/MyWebAssemblyRedirectToLogin.razor?
Thanks.
好的, 我反馈给suite团队, 你可以使用文件流试试
private async Task<AppFileDescriptorDto> UploadFileAsync(IBrowserFile file)
{
// 直接使用文件流,不加载到 MemoryStream
using var stream = file.OpenReadStream(long.MaxValue);
return await ContractAttachmentsAppService.UploadFileAsync(
new RemoteStreamContent(stream, file.Name, file.ContentType));
}
你可以分享一些代码吗? 组件的和copy stream的
hi
I made some changes. Can you confirm it?
https://github.com/RobertoFiocchiMCSI/Cdi.Grc.AbpSupport/commit/4b51831f6463e41df622bd11f985eea7757debd8
Thanks
Chrome浏览器应该没有限制, 你现在得到了什么错误和异常信息?
hi
Here is an example to use the log configuration with appsettings.json
{
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Information",
"Microsoft.EntityFrameworkCore": "Warning"
}
},
"WriteTo": [
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "File",
"Args": { "path": "Logs/logs.txt" }
}
]
}
},
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "Console"
}
]
}
}
],
"Enrich": [ "FromLogContext" ]
}
}
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Serilog;
namespace AbpSolution1.Web;
public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateBootstrapLogger();
try
{
Log.Information("Starting web host.");
var builder = WebApplication.CreateBuilder(args);
builder.Host
.AddAppSettingsSecretsJson()
.UseAutofac()
.UseSerilog((context, services, loggerConfiguration) =>
{
loggerConfiguration
.ReadFrom.Configuration(context.Configuration)
.ReadFrom.Services(services)
.WriteTo.Async(c => c.AbpStudio(services));
});
await builder.AddApplicationAsync<AbpSolution1WebModule>();
var app = builder.Build();
await app.InitializeApplicationAsync();
await app.RunAsync();
return 0;
}
catch (Exception ex)
{
Log.Fatal(ex, "Host terminated unexpectedly!");
return 1;
}
finally
{
Log.CloseAndFlush();
}
}
}
Thanks.