This file contains hidden or 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 ServiceStack; | |
namespace Availabilities.Api.IntegrationTests | |
{ | |
public static class ApiClient | |
{ | |
public static JsonServiceClient Create(string serviceUrl) | |
{ | |
return new JsonServiceClient($"{serviceUrl.WithTrailingSlash()}api/"); | |
} |
This file contains hidden or 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 ServiceStack; | |
namespace Availabilities.Api.IntegrationTests | |
{ | |
public static class ApiClient | |
{ | |
public static JsonServiceClient Create(string serviceUrl) | |
{ | |
return new JsonServiceClient($"{serviceUrl.WithTrailingSlash()}api/"); | |
} |
This file contains hidden or 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
$resourceGroup = "hourfleet-tenants-ause" | |
$storageAccount = "hourfleettenant1" | |
$tableName = "useraccounts" | |
$saContext = (Get-AzureRmStorageAccount -ResourceGroupName $resourceGroup -Name $storageAccount).Context | |
#Next line is for 'classic' storage accounts | |
#$saContext = (New-AzureStorageContext -StorageAccountName $storageAccount -StorageAccountKey "PUTSTPORAGEACCOUNTKEYHERE").Context | |
$userAccountsTable = Get-AzureStorageTable -Name "useraccounts" -Context $saContext | |
$verificationsTable = Get-AzureStorageTable -Name "verifications" -Context $saContext | |
$userProfilesTable = Get-AzureStorageTable -Name "userprofiles" -Context $saContext |
This file contains hidden or 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; | |
using System.Threading.Tasks.Dataflow; | |
using ServiceStack; | |
namespace Gene.Diagnostics | |
{ | |
/// <summary> | |
/// Provides a continous buffered producer/consumer queue (of specified buffer size) of the specified | |
/// <see cref="TMessage" />. |
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using Serilog.Core; | |
using Serilog.Events; | |
namespace Gene.Diagnostics | |
{ | |
/// <summary> | |
/// Defines a <see cref="ILogEventEnricher" /> that removes properties that match (wholey or partially case-sensitive) those in a black-list | |
/// </summary> |