![]() |
VOOZH | about |
dotnet add package WebApiSkeleton.FileSystem.Contracts --version 1.1.2
NuGet\Install-Package WebApiSkeleton.FileSystem.Contracts -Version 1.1.2
<PackageReference Include="WebApiSkeleton.FileSystem.Contracts" Version="1.1.2" />
<PackageVersion Include="WebApiSkeleton.FileSystem.Contracts" Version="1.1.2" />Directory.Packages.props
<PackageReference Include="WebApiSkeleton.FileSystem.Contracts" />Project file
paket add WebApiSkeleton.FileSystem.Contracts --version 1.1.2
#r "nuget: WebApiSkeleton.FileSystem.Contracts, 1.1.2"
#:package WebApiSkeleton.FileSystem.Contracts@1.1.2
#addin nuget:?package=WebApiSkeleton.FileSystem.Contracts&version=1.1.2Install as a Cake Addin
#tool nuget:?package=WebApiSkeleton.FileSystem.Contracts&version=1.1.2Install as a Cake Tool
WebApiSkeleton.FileSystem contains NuGet packages that provide abstractions over a file storage. Default
implementation is done around Minio S3 storage.
Required Minio implementation dependencies are added to DI Container by using AddMinioAssemblyDependencies method. All
configuration is done by
modifying
object.
Following settings are required and will throw if not specified or configured with errors:
Endpoint - endpoint where Minio is located;AccessKey - minio access key;SecretKey - minio secret key.Settings with default values that can be overriden if needed:
MaximumInMemoryDownloadFileSizeByte - maximum file size that is downloaded by using MemoryStream (which means file
is downloaded into server RAM). By default, only files that are sized less than 1 MB are downloaded this way;DefaultBucketName - the name of default Minio bucket, where files are stored if no directory specified. Default
is master;DefaultDirectorySeparator - directory separator for file system abstraction. Default is /.Minio implementation uses WebApiSkeleton features for MediatR requests, including pipeline behavior validation. Thus,
requests from WebApiSkeleton.FileSystem.Contracts implement IValidatableRequest and IAuthorizedRequest.
Minio implementation module contains validators for all of the commands using FluentValidation that are automatically
added to DI container. Although, ValidationBehavior from WebApiSkeleton.Contracts.Validation is not automatically
added
and must be added manually using methods found
in documentation.
Same is applied to PermissionBehavior
from WebApiSkeleton.Security.
NOTE: It is highly recommended to add ValidationBehavior after PermissionBehavior because of performance and
security
reasons.
Example usage can be found in directory.
All projects are versioned using following format: major.minor.patch. Versioning rules for all projects:
patch needs to be incremented when any minor change is made to the project, such as bugfixes or small
project-specific features addedminor needs to be incremented when new template-wide feature is implemented. In this case all of the projects must
have the same version setmajor needs to be incremented when the WebApiSkeleton template has experienced significant changes, that need to
upgrade all of the template packages. In this case all of the projects must
have the same version set| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on WebApiSkeleton.FileSystem.Contracts:
| Package | Downloads |
|---|---|
|
WebApiSkeleton.FileSystem.MinIO
Package containing implementation of file system based on Minio S3 storage. |
This package is not used by any popular GitHub repositories.