AWSFacade 1.0.8
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AWSFacade --version 1.0.8
NuGet\Install-Package AWSFacade -Version 1.0.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AWSFacade" Version="1.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AWSFacade --version 1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AWSFacade, 1.0.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AWSFacade as a Cake Addin #addin nuget:?package=AWSFacade&version=1.0.8 // Install AWSFacade as a Cake Tool #tool nuget:?package=AWSFacade&version=1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AWSFacade
AWSFacade is a face of AWSSDK.
Package | Version | Downloads |
---|---|---|
AWSFacade |
Dependencies
.NET Standard 2.1
You can check supported frameworks here:
https://learn.microsoft.com/pt-br/dotnet/standard/net-standard?tabs=net-standard-2-1
Instalation
This package is available through Nuget Packages: https://www.nuget.org/packages/AWSFacade
Nuget
Install-Package AWSFacade
.NET CLI
dotnet add package AWSFacade
How to use
SQS
Basic
using AWSFacade.SQS.Contracts;
using AWSFacade.SQS.Extensions;
services.AddSqsFacade(config =>
{
config.MessageGroupId = "YOUR_GROUP_ID";
config.QueueUrl = "YOUR_QUEUE_URL";
config.RegionEndpoint = RegionEndpoint.SAEast1;
});
With Identification Name
using AWSFacade.SQS.Contracts;
using AWSFacade.SQS.Extensions;
services.AddSqsFacade("SQS_CUSTOMER", config =>
{
config.MessageGroupId = "YOUR_GROUP_ID";
config.QueueUrl = "YOUR_QUEUE_URL";
config.RegionEndpoint = RegionEndpoint.SAEast1;
});
services.AddSqsFacade("SQS_SALES", config =>
{
config.MessageGroupId = "YOUR_GROUP_ID";
config.QueueUrl = "YOUR_QUEUE_URL";
config.RegionEndpoint = RegionEndpoint.SAEast1;
});
Usage example A
var sqsFacadeFactory = serviceProvider.GetService<ISqsFacadeFactory>();
var sqsFacade = sqsFacadeFactory!.Create();
Usage example B
public class Customer
{
private readonly ISqsFacade _sqsFacade;
public Customer(ISqsFacadeFactory sqsFacadeFactory)
{
_sqsFacade = sqsFacadeFactory.Create();
}
}
Usage example C
public class Customer
{
private readonly ISqsFacade _customerSqs;
private readonly ISqsFacade _salesSqs;
public Customer(ISqsFacadeFactory sqsFacadeFactory)
{
_customerSqs = sqsFacadeFactory.Create("SQS_CUSTOMER");
_salesSqs = sqsFacadeFactory.Create("SQS_SALES");
}
}
SecretsManager
using AWSFacade.SecretsManager.Contracts;
using AWSFacade.SecretsManager.Extensions;
services.AddSecretsManagerCache((sp) => new AmazonSecretsManagerClient(new AmazonSecretsManagerConfig { RegionEndpoint = RegionEndpoint.SAEast1 }));
Usage example
var secretsCache = serviceProvider.GetService<ISecretsCache>();
string secretValue = secretsCache!.GetSecretValueAsync("YOUR_KEY");
Elasticache Redis
using AWSFacade.ElastiCache.Redis.Extensions;
using AWSFacade.SecretsManager.Extensions;
services.AddLogging();
services.AddSecretsManagerCache((sp) => ....);
services.AddElasticacheRedis(config =>
{
config.AbortConnect = false;
config.Endpoing = "localhost:6379";
config.InstanceName = "test";
config.SecretKey = "test";
config.Ssl = true;
});
Usage example
var cache = serviceProvider.GetRequiredService<IDistributedCache>();
//SET KEY
await cache.SetStringAsync("test", "test");
//GET KEY
var result = await cache.GetStringAsync("test");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- AWSSDK.Core (>= 3.7.200.13)
- AWSSDK.SecretsManager (>= 3.7.200.13)
- AWSSDK.SQS (>= 3.7.200.14)
- Microsoft.Extensions.Caching.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Caching.Memory (>= 7.0.0)
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
- Microsoft.Extensions.Options (>= 7.0.1)
- StackExchange.Redis (>= 2.6.122)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.