I created a app-pro template project, and add FileManagement Module. It works fine.
Now i need use minio, i readed the https://abp.io/docs/latest/framework/infrastructure/blob-storing/minio
, add minio use abp add-package Volo.Abp.BlobStoring.Minio
in my HttpApi.Host project.
HttpApi.Host.csproj
...
<PackageReference Include="Volo.Abp.BlobStoring.Minio" Version="8.2.2" />
...
appsettings.json
{
...
"Minio": {
"EndPoint": "127.0.0.1",
"AccessKey": "minioadmin",
"SecretKey": "minioadmin",
"BucketName": "my",
"WithSSL": false,
"CreateContainerIfNotExists": true
},
...
}
MyHttpApiHostModule.js
[DependsOn(
...
typeof(AbpBlobStoringMinioModule),
...
)]
public class MyHttpApiHostModule : AbpModule {
...
public override void ConfigureServices(ServiceConfigurationContext context) {
...
Configure<AbpBlobStoringOptions>(options =>
{
System.Console.WriteLine("## - 1");
options.Containers.Configure<FileManagementContainer>(c =>
{
System.Console.WriteLine("## - 2");
c.UseMinio(minio =>
{
System.Console.WriteLine("## - 3");
minio.EndPoint = configuration["Minio:EndPoint"]!;
minio.AccessKey = configuration["Minio:AccessKey"]!;
minio.SecretKey = configuration["Minio:SecretKey"]!;
minio.BucketName = configuration["Minio:BucketName"];
minio.WithSSL = configuration.GetValue<bool>("Minio:WithSSL");
minio.CreateBucketIfNotExists = configuration.GetValue<bool>("Minio:CreateBucketIfNotExists");
});
});
});
}
...
I added a breakpoint in line System.Console.WriteLine("## - 1");
, But where i run the HttpApi.Host,
There is no output ## - 1
from the log, and no breakpoints are triggered.
Am I missing some steps?