-
Notifications
You must be signed in to change notification settings - Fork 6
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 #41 from SharpGrip/release/1.2
Release/1.2
- Loading branch information
Showing
52 changed files
with
1,138 additions
and
248 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
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,20 @@ | ||
# SharpGrip FileSystem AmazonS3 adapter [![NuGet](https://img.shields.io/nuget/v/SharpGrip.FileSystem.Adapters.AmazonS3)](https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AmazonS3) | ||
|
||
## Installation | ||
|
||
Reference NuGet package `SharpGrip.FileSystem.Adapters.AmazonS3` (https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AmazonS3). | ||
|
||
## Usage | ||
|
||
``` | ||
// Amazon connection. | ||
var amazonClient = new AmazonS3Client("awsAccessKeyId", "awsSecretAccessKey", RegionEndpoint.USEast2); | ||
var adapters = new List<IAdapter> | ||
{ | ||
new AmazonS3Adapter("amazon1", "/Files", amazonClient, "bucketName1") | ||
new AmazonS3Adapter("amazon2", "/Files", amazonClient, "bucketName2") | ||
}; | ||
var fileSystem = new FileSystem(adapters); | ||
``` |
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,21 @@ | ||
# SharpGrip FileSystem AzureBlobStorage adapter [![NuGet](https://img.shields.io/nuget/v/SharpGrip.FileSystem.Adapters.AzureBlobStorage)](https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AzureBlobStorage) | ||
|
||
## Installation | ||
|
||
Reference NuGet package `SharpGrip.FileSystem.Adapters.AzureBlobStorage` (https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AzureBlobStorage). | ||
|
||
## Usage | ||
|
||
``` | ||
// Azure connection. | ||
var blobServiceClient = new BlobServiceClient("connectionString"); | ||
var azureClient = blobServiceClient.GetBlobContainerClient("blobContainerName"); | ||
var adapters = new List<IAdapter> | ||
{ | ||
new LocalAdapter("local", "/var/files"), | ||
new AzureBlobStorageAdapter("azure", "/Files", azureClient) | ||
}; | ||
var fileSystem = new FileSystem(adapters); | ||
``` |
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,20 @@ | ||
# SharpGrip FileSystem AzureFileStorage adapter [![NuGet](https://img.shields.io/nuget/v/SharpGrip.FileSystem.Adapters.AzureFileStorage)](https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AzureFileStorage) | ||
|
||
## Installation | ||
|
||
Reference NuGet package `SharpGrip.FileSystem.Adapters.AzureFileStorage` (https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AzureFileStorage). | ||
|
||
## Usage | ||
|
||
``` | ||
// Azure connection. | ||
var azureClient = new ShareClient("connectionString", "shareName"); | ||
var adapters = new List<IAdapter> | ||
{ | ||
new LocalAdapter("local", "/var/files"), | ||
new AzureFileStorageAdapter("azure", "/Files", azureClient) | ||
}; | ||
var fileSystem = new FileSystem(adapters); | ||
``` |
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,20 @@ | ||
# SharpGrip FileSystem Dropbox adapter [![NuGet](https://img.shields.io/nuget/v/SharpGrip.FileSystem.Adapters.Dropbox)](https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.Dropbox) | ||
|
||
## Installation | ||
|
||
Reference NuGet package `SharpGrip.FileSystem.Adapters.Dropbox` (https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.Dropbox). | ||
|
||
## Usage | ||
|
||
``` | ||
// Dropbox connection. | ||
var dropboxClient = new DropboxClient("oAuth2AccessToken"); | ||
var adapters = new List<IAdapter> | ||
{ | ||
new LocalAdapter("local", "/var/files"), | ||
new DropboxAdapter("dropbox", "/Files", dropboxClient) | ||
}; | ||
var fileSystem = new FileSystem(adapters); | ||
``` |
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,31 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<RootNamespace>SharpGrip.FileSystem.Adapters.Ftp</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<AssemblyName>SharpGrip.FileSystem.Adapters.Ftp</AssemblyName> | ||
<PackageId>SharpGrip.FileSystem.Adapters.Ftp</PackageId> | ||
<Title>SharpGrip FileSystem FTP adapter</Title> | ||
<Description>The SharpGrip FileSystem FTP adapter.</Description> | ||
<PackageTags>sharpgrip;file-system;ftp</PackageTags> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="README.md" Pack="true" PackagePath="\" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="FluentFTP" Version="50.0.1" /> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\FileSystem\FileSystem.csproj" /> | ||
</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,20 @@ | ||
# SharpGrip FileSystem Ftp adapter [![NuGet](https://img.shields.io/nuget/v/SharpGrip.FileSystem.Adapters.Ftp)](https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.Ftp) | ||
|
||
## Installation | ||
|
||
Reference NuGet package `SharpGrip.FileSystem.Adapters.Ftp` (https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.Ftp). | ||
|
||
## Usage | ||
|
||
``` | ||
// FTP connection. | ||
var ftpClient = new AsyncFtpClient("hostname", "username", "password"); | ||
var adapters = new List<IAdapter> | ||
{ | ||
new LocalAdapter("local", "/var/files"), | ||
new FtpAdapter("ftp", "/var/files", ftpClient) | ||
}; | ||
var fileSystem = new FileSystem(adapters); | ||
``` |
Oops, something went wrong.