Skip to content

Instantly share code, notes, and snippets.

View dylanbeattie's full-sized avatar

Dylan Beattie dylanbeattie

View GitHub Profile
@markwemekamp
markwemekamp / GoogleAnalyticsReportingv4ServiceAccount.cs
Created September 17, 2016 16:19
Read data from Google analytics using Google Analytics Reporting v4 and a Service account
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Google.Apis.AnalyticsReporting.v4;
using Google.Apis.AnalyticsReporting.v4.Data;
using Google.Apis.Auth.OAuth2;
using Google.Apis.Services;
namespace Google_api
@udidahan
udidahan / gist:854518
Created March 4, 2011 12:03
Udi Dahan ADSD refactoring
public class CC1 : IHandleMessages<MakeCustomerPreferred>
{
public IBus Bus { get; set; }
public void Handle(MakeCustomerPreferred message)
{
Bus.Publish<CustomerHasBeenMadePreferred>(m => m.CustomerId = message.CustomerId);
}
}