Skip to content

Instantly share code, notes, and snippets.

View pksorensen's full-sized avatar

Poul Kjeldager Sørensen pksorensen

View GitHub Profile
{
"upstreams": {
"contosocorp-cdn": {
"servers": [
{
"host": "ammo.blob.core.windows.net",
"weigth": 1
}
]
},
{
"id": "587cb1d3-aba7-495d-a068-088ac3d98441",
"eventType": "change",
"subject": "cds/environments/danchurchaidtest/entities/contact/9622eea7-a9b0-ea11-a812-000d3a2abf56/changesets/2020-06-17T14:48:55Z",
"data": {
"before": {
"dca_consent": false,
"statecode": 0,
"modifiedon": "2020-06-17T14:48:55Z",
"dca_gdiigiftstatus": false,
[TestClass]
public class EventDrivenBlobUpdateTest
{
[TestMethod]
public async Task CombineBlocksAutomatically()
{
var account = CloudStorageAccount.DevelopmentStorageAccount;
var container = account.CreateCloudBlobClient().GetContainerReference("testcontianer");
await container.DeleteIfExistsAsync();
await container.CreateAsync();
public class ServiceRegistrations
{
public class HandlerWrapper
{
private IServiceScopeFactory serviceScopeFactory;
private Type handlertype;
private MethodInfo method;
public HandlerWrapper(IServiceScopeFactory serviceScopeFactory, Type messageType)
[assembly: WebJobsStartup(typeof(AuthorizeBindingStartup))]
namespace CustomBinding
{
public static class AuthorizeBindingExtension
{
public static IWebJobsBuilder AddMyFileReaderBinding(this IWebJobsBuilder builder)
{
if (builder == null)
{
public class EventPublisher
{
private readonly EventGridConfiguration options;
private readonly IHostingEnvironment environment;
public EventPublisher(IOptions<EventGridConfiguration> options, IHostingEnvironment environment)
{
this.options = options?.Value ?? throw new ArgumentNullException(nameof(options));
this.environment = environment ?? throw new ArgumentNullException(nameof(environment));
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using IOBoard.DataIngestor.Common;
using System.Linq;
using SInnovations.Azure.TableStorageRepository.Queryable;
using System.Text;
using System.Collections.Generic;
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Index</title>
<style>
html, body {
height: 100%;
width: 100%;
%%%%%%
%%%%%%
@ %%%%%% @
@@ %%%%%% @@
@@@ %%%%%%%%%%% @@@
@@ %%%%%%%%%% @@
@@ %%%% @@
@@ %%% @@
@@ %% @@
using DotNETDevOps.Extensions.AzureFunctions;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Azure.WebJobs.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;