Skip to content

Commit 9e0dbec

Browse files
committed
split up readme files per adapter
1 parent f2eb064 commit 9e0dbec

19 files changed

Lines changed: 234 additions & 189 deletions

File tree

FileSystem.Adapters.AmazonS3/FileSystem.Adapters.AmazonS3.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<None Include="..\README.md" Pack="true" PackagePath="\" />
16+
<None Include="README.md" Pack="true" PackagePath="\" />
1717
</ItemGroup>
1818

1919
<ItemGroup>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# SharpGrip FileSystem AmazonS3 adapter [![NuGet](https://img.shields.io/nuget/v/SharpGrip.FileSystem.Adapters.AmazonS3)](https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AmazonS3)
2+
3+
## Installation
4+
5+
Reference NuGet package `SharpGrip.FileSystem.Adapters.AmazonS3` (https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AmazonS3).
6+
7+
## Usage
8+
9+
```
10+
// Amazon connection.
11+
var amazonClient = new AmazonS3Client("awsAccessKeyId", "awsSecretAccessKey", RegionEndpoint.USEast2);
12+
13+
var adapters = new List<IAdapter>
14+
{
15+
new AmazonS3Adapter("amazon1", "/Files", amazonClient, "bucketName1")
16+
new AmazonS3Adapter("amazon2", "/Files", amazonClient, "bucketName2")
17+
};
18+
19+
var fileSystem = new FileSystem(adapters);
20+
```

FileSystem.Adapters.AzureBlobStorage/FileSystem.Adapters.AzureBlobStorage.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<None Include="..\README.md" Pack="true" PackagePath="\" />
16+
<None Include="README.md" Pack="true" PackagePath="\" />
1717
</ItemGroup>
1818

1919
<ItemGroup>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SharpGrip FileSystem AzureBlobStorage adapter [![NuGet](https://img.shields.io/nuget/v/SharpGrip.FileSystem.Adapters.AzureBlobStorage)](https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AzureBlobStorage)
2+
3+
## Installation
4+
5+
Reference NuGet package `SharpGrip.FileSystem.Adapters.AzureBlobStorage` (https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AzureBlobStorage).
6+
7+
## Usage
8+
9+
```
10+
// Azure connection.
11+
var blobServiceClient = new BlobServiceClient("connectionString");
12+
var azureClient = blobServiceClient.GetBlobContainerClient("blobContainerName");
13+
14+
var adapters = new List<IAdapter>
15+
{
16+
new LocalAdapter("local", "/var/files"),
17+
new AzureBlobStorageAdapter("azure", "/Files", azureClient)
18+
};
19+
20+
var fileSystem = new FileSystem(adapters);
21+
```

FileSystem.Adapters.AzureFileStorage/FileSystem.Adapters.AzureFileStorage.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<None Include="..\README.md" Pack="true" PackagePath="\" />
16+
<None Include="README.md" Pack="true" PackagePath="\" />
1717
</ItemGroup>
1818

1919
<ItemGroup>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# SharpGrip FileSystem AzureFileStorage adapter [![NuGet](https://img.shields.io/nuget/v/SharpGrip.FileSystem.Adapters.AzureFileStorage)](https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AzureFileStorage)
2+
3+
## Installation
4+
5+
Reference NuGet package `SharpGrip.FileSystem.Adapters.AzureFileStorage` (https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.AzureFileStorage).
6+
7+
## Usage
8+
9+
```
10+
// Azure connection.
11+
var azureClient = new ShareClient("connectionString", "shareName");
12+
13+
var adapters = new List<IAdapter>
14+
{
15+
new LocalAdapter("local", "/var/files"),
16+
new AzureFileStorageAdapter("azure", "/Files", azureClient)
17+
};
18+
19+
var fileSystem = new FileSystem(adapters);
20+
```

FileSystem.Adapters.Dropbox/FileSystem.Adapters.Dropbox.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<None Include="..\README.md" Pack="true" PackagePath="\" />
16+
<None Include="README.md" Pack="true" PackagePath="\" />
1717
</ItemGroup>
1818

1919
<ItemGroup>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# SharpGrip FileSystem Dropbox adapter [![NuGet](https://img.shields.io/nuget/v/SharpGrip.FileSystem.Adapters.Dropbox)](https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.Dropbox)
2+
3+
## Installation
4+
5+
Reference NuGet package `SharpGrip.FileSystem.Adapters.Dropbox` (https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.Dropbox).
6+
7+
## Usage
8+
9+
```
10+
// Dropbox connection.
11+
var dropboxClient = new DropboxClient("oAuth2AccessToken");
12+
13+
var adapters = new List<IAdapter>
14+
{
15+
new LocalAdapter("local", "/var/files"),
16+
new DropboxAdapter("dropbox", "/Files", dropboxClient)
17+
};
18+
19+
var fileSystem = new FileSystem(adapters);
20+
```

FileSystem.Adapters.Ftp/FileSystem.Adapters.Ftp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<None Include="..\README.md" Pack="true" PackagePath="\" />
16+
<None Include="README.md" Pack="true" PackagePath="\" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

FileSystem.Adapters.Ftp/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# SharpGrip FileSystem Ftp adapter [![NuGet](https://img.shields.io/nuget/v/SharpGrip.FileSystem.Adapters.Ftp)](https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.Ftp)
2+
3+
## Installation
4+
5+
Reference NuGet package `SharpGrip.FileSystem.Adapters.Ftp` (https://www.nuget.org/packages/SharpGrip.FileSystem.Adapters.Ftp).
6+
7+
## Usage
8+
9+
```
10+
// FTP connection.
11+
var ftpClient = new AsyncFtpClient("hostname", "username", "password");
12+
13+
var adapters = new List<IAdapter>
14+
{
15+
new LocalAdapter("local", "/var/files"),
16+
new FtpAdapter("ftp", "/var/files", ftpClient)
17+
};
18+
19+
var fileSystem = new FileSystem(adapters);
20+
```

0 commit comments

Comments
 (0)