-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from Sitefinity/upgrade151
Release v.15.1.8300.0
- Loading branch information
Showing
10 changed files
with
133 additions
and
544 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<TargetFramework>net48</TargetFramework> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<WarningLevel>0</WarningLevel> | ||
</PropertyGroup> | ||
|
||
<!-- Telerik Data Access related variables --> | ||
<PropertyGroup> | ||
<Use64BitEnhancer>true</Use64BitEnhancer> | ||
<EnhancerVerboseMode>3</EnhancerVerboseMode> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="Telerik.Sitefinity.Core" Version="15.1.8300" /> | ||
<PackageVersion Include="AWSSDK.S3" Version="3.7.300.2" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.Specialized; | ||
using System.Linq; | ||
using Telerik.Microsoft.Practices.Unity; | ||
using Telerik.Sitefinity.Abstractions; | ||
using Telerik.Sitefinity.Amazon.BlobStorage; | ||
using Telerik.Sitefinity.Configuration; | ||
using Telerik.Sitefinity.Modules.Libraries; | ||
using Telerik.Sitefinity.Modules.Libraries.Configuration; | ||
|
||
namespace Telerik.Sitefinity.Amazon | ||
{ | ||
/// <summary> | ||
/// Registers Amazon blob storage provider. | ||
/// </summary> | ||
public static class Initializer | ||
{ | ||
/// <summary> | ||
/// Attach to ObjectFactory_RegisteringIoCTypes event. | ||
/// </summary> | ||
public static void Initialize() | ||
{ | ||
ObjectFactory.RegisteringIoCTypes += ObjectFactory_RegisteringIoCTypes; | ||
} | ||
|
||
private static void ObjectFactory_RegisteringIoCTypes(object sender, EventArgs e) | ||
{ | ||
ObjectFactory.Container.RegisterType(typeof(IBlobStorageConfiguration), typeof(AmazonBlobStorageConfiguration), typeof(AmazonBlobStorageConfiguration).Name); | ||
} | ||
|
||
/// <summary> | ||
/// Register Amazon blob strorage providers and types | ||
/// </summary> | ||
class AmazonBlobStorageConfiguration : IBlobStorageConfiguration | ||
{ | ||
public IEnumerable<BlobStorageTypeConfigElement> GetProviderTypeConfigElements(ConfigElement parent) | ||
{ | ||
var providerTypes = new List<BlobStorageTypeConfigElement>(); | ||
|
||
providerTypes.Add(new BlobStorageTypeConfigElement(parent) | ||
{ | ||
Name = "Amazon", | ||
ProviderType = typeof(AmazonBlobStorageProvider), | ||
Title = "Amazon S3", | ||
Parameters = new NameValueCollection() | ||
{ | ||
{ AmazonBlobStorageProvider.AccessKeyIdKey, string.Empty }, | ||
{ AmazonBlobStorageProvider.SecretKeyKey, "#sf_Secret" }, | ||
{ AmazonBlobStorageProvider.BucketNameKey, string.Empty }, | ||
{ AmazonBlobStorageProvider.RegionEndpointKey, string.Empty }, | ||
{ AmazonBlobStorageProvider.UrlSchemeKey, string.Empty } | ||
} | ||
}); | ||
|
||
return providerTypes; | ||
} | ||
|
||
public IEnumerable<DataProviderSettings> GetProviderConfigElements(ConfigElement parent) | ||
{ | ||
return new List<DataProviderSettings>(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<solution> | ||
<add key="disableSourceControlIntegration" value="true" /> | ||
</solution> | ||
<packageRestore> | ||
<add key="enabled" value="True" /> | ||
<add key="automatic" value="true" /> | ||
</packageRestore> | ||
<packageSources> | ||
<clear /> | ||
<add key="nuget.sitefinity.com" value="https://nuget.sitefinity.com/nuget" /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> | ||
</packageSources> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.