StringExtensions Class
Definition
- Namespace
- Savvyio.Extensions.SimpleQueueService.EventDriven
- Assemblies
- Savvyio.Extensions.SimpleQueueService.dll
Extension methods for the string class.
public static class StringExtensions
- Inheritance
-
objectStringExtensions
Examples
Use StringExtensions.ToSnsUri to convert an SNS topic name to a Uri formatted as an Amazon Resource Name (ARN) for use as the event bus source.
using System;
using Savvyio.Extensions.SimpleQueueService.EventDriven;
namespace ExampleApp;
public class SnsUriExample
{
public static Uri BuildSnsTopicUri()
{
var topicArn = "account-events".ToSnsUri(options =>
{
options.Partition = "aws";
options.Region = "eu-west-1";
options.AccountId = "123456789012";
});
return topicArn;
}
}
Methods
| Name | Description |
|---|---|
| ToSnsUri(string, Action<AmazonResourceNameOptions>) | Converts the specified |