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
using Microsoft.Azure.Cosmos; | |
using System; | |
using System.Threading.Tasks; | |
namespace TestTransactionalBatchConsole | |
{ | |
class Program | |
{ | |
static async Task Main(string[] args) | |
{ |
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
using Microsoft.Azure.KeyVault; | |
using Microsoft.Azure.Services.AppAuthentication; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Configuration.AzureAppConfiguration; | |
using System; | |
using System.Threading.Tasks; | |
namespace AppConfigConsoleDemo | |
{ | |
class Program |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp2.2</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.Extensions.Configuration.AzureAppConfiguration" | |
Version="2.0.0-preview-010050001-38" /> |
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
using Microsoft.Azure.Functions.Extensions.DependencyInjection; | |
using Microsoft.Extensions.DependencyInjection; | |
[assembly: FunctionsStartup(typeof(AzureFunctionAppWithDIAndScrutor.Startup))] | |
namespace AzureFunctionAppWithDIAndScrutor | |
{ | |
public class Startup : FunctionsStartup | |
{ | |
public override void Configure(IFunctionsHostBuilder builder) |
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
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions.Http; | |
using System.Threading.Tasks; | |
namespace AzureFunctionAppWithDIAndScrutor | |
{ | |
public class SimpleFunction | |
{ |
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
using Microsoft.Azure.Functions.Extensions.DependencyInjection; | |
using Microsoft.Extensions.DependencyInjection; | |
[assembly: FunctionsStartup(typeof(AzureFunctionAppWithDIAndScrutor.Startup))] | |
namespace AzureFunctionAppWithDIAndScrutor | |
{ | |
public class Startup : FunctionsStartup | |
{ | |
public override void Configure(IFunctionsHostBuilder builder) |
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
public static string CreateBase64Hash(string message) | |
{ | |
var encoding = new UTF8Encoding(); | |
byte[] messageBytes = encoding.GetBytes(message); | |
return Convert.ToBase64String(messageBytes); | |
} |
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
using System; | |
using System.Threading; | |
namespace RetrySolution | |
{ | |
public static class RetryManager | |
{ | |
private const int RetryCount = 3; | |
private const int RetryTimeoutInMillis = 100; | |
public static void TryExecute(Action action) | |
{ |
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
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title type="text">Publicly Listed Services</title> | |
<subtitle type="text">This is the list of publicly-listed services currently available.</subtitle> | |
<id>uuid:82f1e291-8ab5-48ac-bf17-09353ad0e980;id=354423</id> | |
<updated>2014-08-26T18:00:48Z</updated> | |
<generator>Service Bus 1.1</generator> | |
<entry> | |
<id>uuid:82f1e291-8ab5-48ac-bf17-09353ad0e980;id=354424</id> | |
<title type="text">NameOfTheService</title> | |
<updated>2014-08-26T18:00:49Z</updated> |
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
<?xml version="1.0"?> | |
<configuration> | |
<system.serviceModel> | |
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" aspNetCompatibilityEnabled="true" /> | |
<bindings> | |
<webHttpRelayBinding> | |
<binding name="default"> | |
<security relayClientAuthenticationType="None" /> | |
</binding> | |
</webHttpRelayBinding> |