SiHan.Asp.ObjectStore 1.0.0

ASP.NET Core 对象储存库

Install-Package SiHan.Asp.ObjectStore -Version 1.0.0
dotnet add package SiHan.Asp.ObjectStore --version 1.0.0
<PackageReference Include="SiHan.Asp.ObjectStore" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SiHan.Asp.ObjectStore --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SiHan.Asp.ObjectStore, 1.0.0"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

SiHan.Asp.ObjectStore

ASP.NET Core 2.1 对象存储库,核心类如下:

  • IObjectStoreService:对象存储服务接口
  • AliyunOssService:阿里云对象存储服务,作为IObjectStoreService接口的实现。

如果要使用阿里云对象存储,必须在配置文件中编写如下配置:

{
  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
  },
  "Aliyun": {
    "AccessKeyId": "*****",
    "AccessKeySecret": "*****",
    "Endpoint": "*****",
    "BucketName": "*****"
  }
}

然后在startup类中加入以下服务:

 services.AddScoped<IObjectStoreService, AliyunOssService>();

SiHan.Asp.ObjectStore

ASP.NET Core 2.1 对象存储库,核心类如下:

  • IObjectStoreService:对象存储服务接口
  • AliyunOssService:阿里云对象存储服务,作为IObjectStoreService接口的实现。

如果要使用阿里云对象存储,必须在配置文件中编写如下配置:

{
  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
  },
  "Aliyun": {
    "AccessKeyId": "*****",
    "AccessKeySecret": "*****",
    "Endpoint": "*****",
    "BucketName": "*****"
  }
}

然后在startup类中加入以下服务:

 services.AddScoped<IObjectStoreService, AliyunOssService>();

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 160 12/25/2019