Example #1
0
        public static AzureBusSender CreateFromEnv()
        {
            var result = new AzureBusSender(
                Environment.GetEnvironmentVariable("AZURE_BUS_CONNECTION_STRING"),
                Environment.GetEnvironmentVariable("AZURE_BUS_TOPIC_NAME")
                );

            return(result);
        }
 /// <summary>
 /// Default constructor. This constructor is used by Lambda to construct the instance. When invoked in a Lambda environment
 /// the AWS credentials will come from the IAM role associated with the function and the AWS region will be set to the
 /// region the Lambda function is executed in.
 /// </summary>
 public S3Notifier() : this(new AmazonS3Client(), AzureBusSender.CreateFromEnv())
 {
 }