Hi,
You can check this: https://docs.abp.io/en/abp/latest/UI/AspNetCore/Navigation-Menu#adding-menu-items
Same with:
var parent = new ApplicationMenuItem("MyProject.Crm", l["Menu:CRM"]);
parent.AddItem(new ApplicationMenuItem(
name: "MyProject.Crm.Customers",
displayName: l["Menu:Customers"],
url: "/crm/customers")
);
parent.AddItem(new ApplicationMenuItem(
name: "MyProject.Crm.Orders",
displayName: l["Menu:Orders"],
url: "/crm/orders")
);
context.Menu.AddItem(parent);
Hi,
You can try use JsonPropertyNameAttribute
Hi,
I have successfully used HTTPS in Docker.
dockerfile:
FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
COPY . .
ENTRYPOINT ["dotnet", "Qa1586.Web.dll"]
Generate local certificates:
dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p 123456
dotnet dev-certs https --trust
docker run command:
docker run --name qa -v D:/coding:/var/https -e ASPNETCORE_Kestrel__Certificates__Default__Password=123456 -e ASPNETCORE_Kestrel__Certificates__Default__Path=/var/https/aspnetapp.pfx -e ASPNETCORE_URLS='https://+:443;http://+:80' -p 44320:80 -p 44321:443 qa1586
it works well
Hi,
Can I check it remotely? shiwei.liang@volosoft.com
Hi,
ticket returned.
Hi,
Okay, I will check it out.
Hi
What version are you using? can you provide steps to reproduce? thanks
Hi,
You can use the following methods to quickly fix the problem:
public class MyRemoteStreamContentOutputFormatter : OutputFormatter
{
public MyRemoteStreamContentOutputFormatter()
{
SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse("*/*"));
}
protected override bool CanWriteType(Type type)
{
return typeof(IRemoteStreamContent).IsAssignableFrom(type);
}
public override async Task WriteResponseBodyAsync(OutputFormatterWriteContext context)
{
var remoteStream = (IRemoteStreamContent)context.Object;
using (var stream = remoteStream.GetStream())
{
if (stream.CanSeek)
{
stream.Position = 0;
}
await stream.CopyToAsync(context.HttpContext.Response.Body);
}
}
}
Configure<MvcOptions>(options =>
{
options.OutputFormatters.RemoveType<RemoteStreamContentOutputFormatter>();
options.OutputFormatters.Insert(0, new MyRemoteStreamContentOutputFormatter());
});