Skip to content

Instantly share code, notes, and snippets.

View clivefoley's full-sized avatar

Clive Foley clivefoley

  • Sligo, Ireland
View GitHub Profile
@clivefoley
clivefoley / azure-function-cosmos-trigger.cs
Last active February 4, 2019 17:05
A simple azure function, triggered by cosmos that logs to blob storage
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.Azure.Documents;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using Microsoft.WindowsAzure.Storage.Blob;
namespace CosmosDbChangeFeedTrigger
using System;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using System.Linq;
namespace CosmosDbSecurityDemo
{
class Program
{
private const string EndpointUrl = "<put your endpoint here>";
@clivefoley
clivefoley / taskExample.cs
Created January 22, 2019 11:19
An example of using tasks and continueWith
using System;
using System.Threading.Tasks;
namespace TasksExample
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Welcome to the Tasks example app.");

Keybase proof

I hereby claim:

  • I am clivefoley on github.
  • I am clivefoley (https://keybase.io/clivefoley) on keybase.
  • I have a public key ASC7Alz_oa2R2ftuoFuGeATV36ciLs7LcFvA4IuXVn6eFQo

To claim this, I am signing this object: