From 74f3c7775e97fd7ff1ac254981578db337b99bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Tue, 9 Jun 2020 22:58:18 +0300 Subject: [PATCH] Complete the BLOB Storing document. --- docs/en/Blob-Storing.md | 5 +++- docs/en/docs-nav.json | 30 +++++++++++++++++++ .../IBlobContainerConfigurationProvider.cs | 5 ++++ 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/docs/en/Blob-Storing.md b/docs/en/Blob-Storing.md index 5253098fa2..7c2b351fa1 100644 --- a/docs/en/Blob-Storing.md +++ b/docs/en/Blob-Storing.md @@ -289,7 +289,10 @@ Configure(options => ## Extending the BLOB Storing System -TODO +Most of the times, you won't need to customize the BLOB storage system except [creating a custom BLOB storage provider](Blob-Storing-Custom-Provider.md). However, you can replace any service introduced above (via [dependency injection](Dependency-Injection.md)), if you need. Here, some other services not mentioned above, but you may want to know: + +* `IBlobProviderSelector` is used to get a `IBlobProvider` instance by a container name. Default implementation (`DefaultBlobProviderSelector`) selects the provider using the configuration. +* `IBlobContainerConfigurationProvider` is used to get the `BlobContainerConfiguration` for a given container name. Default implementation (`DefaultBlobContainerConfigurationProvider`) gets the configuration from the `AbpBlobStoringOptions` explained above. ## See Also diff --git a/docs/en/docs-nav.json b/docs/en/docs-nav.json index 9db7916f11..1a283856c0 100644 --- a/docs/en/docs-nav.json +++ b/docs/en/docs-nav.json @@ -179,6 +179,36 @@ "text": "Object to object mapping", "path": "Object-To-Object-Mapping.md" }, + { + "text": "BLOB Storing", + "items": [ + { + "text": "BLOB Storing System", + "path": "Blob-Storing.md" + }, + { + "text": "Storage Providers", + "items": [ + { + "text": "File System Provider", + "path": "Blob-Storing-File-System.md" + }, + { + "text": "Database Provider", + "path": "Blob-Storing-Database.md" + }, + { + "text": "Azure Provider", + "path": "Blob-Storing-Azure.md" + }, + { + "text": "Create a Custom Provider", + "path": "Blob-Storing-Custom-Provider.md" + } + ] + } + ] + }, { "text": "Text Templating", "path": "Text-Templating.md" diff --git a/framework/src/Volo.Abp.BlobStoring/Volo/Abp/BlobStoring/IBlobContainerConfigurationProvider.cs b/framework/src/Volo.Abp.BlobStoring/Volo/Abp/BlobStoring/IBlobContainerConfigurationProvider.cs index f984a903a2..3dbeef3b10 100644 --- a/framework/src/Volo.Abp.BlobStoring/Volo/Abp/BlobStoring/IBlobContainerConfigurationProvider.cs +++ b/framework/src/Volo.Abp.BlobStoring/Volo/Abp/BlobStoring/IBlobContainerConfigurationProvider.cs @@ -2,6 +2,11 @@ { public interface IBlobContainerConfigurationProvider { + /// + /// Gets a for the given container . + /// + /// The name of the container + /// The configuration that should be used for the container BlobContainerConfiguration Get(string name); } } \ No newline at end of file