File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
src/Umbraco.StorageProviders.AzureBlob/DependencyInjection Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using Microsoft . Extensions . DependencyInjection ;
3
- using Microsoft . Extensions . Options ;
4
3
using Umbraco . StorageProviders . AzureBlob ;
5
- using Umbraco . StorageProviders . AzureBlob . IO ;
6
4
7
5
// ReSharper disable once CheckNamespace
8
6
// uses same namespace as Umbraco Core for easier discoverability
@@ -27,16 +25,6 @@ public static IUmbracoBuilder AddCdnMediaUrlProvider(this IUmbracoBuilder builde
27
25
28
26
builder . Services . AddOptions < CdnMediaUrlProviderOptions > ( )
29
27
. BindConfiguration ( "Umbraco:Storage:AzureBlob:Media:Cdn" )
30
- . Configure < IOptionsFactory < AzureBlobFileSystemOptions > > (
31
- ( options , factory ) =>
32
- {
33
- var mediaOptions = factory . Create ( AzureBlobFileSystemOptions . MediaFileSystemName ) ;
34
- if ( ! string . IsNullOrEmpty ( mediaOptions . ContainerName ) )
35
- {
36
- options . Url = new Uri ( options . Url , mediaOptions . ContainerName ) ;
37
- }
38
- }
39
- )
40
28
. ValidateDataAnnotations ( ) ;
41
29
42
30
builder . MediaUrlProviders ( ) . Insert < CdnMediaUrlProvider > ( ) ;
You can’t perform that action at this time.
0 commit comments