Skip to content

Instantly share code, notes, and snippets.

View davidhenley's full-sized avatar

David Henley davidhenley

  • Best Brands Inc.
  • Nashville, TN
View GitHub Profile
@davidhenley
davidhenley / angular-hooks.ts
Last active September 10, 2019 21:37
Angular Hooks
import { Component } from '@angular/core';
@Component({
selector: 'hooks-example',
template: `
<p>You clicked {{count}} times</p>
<button (click)="setCount(count + 1)">Click Me</button>
`
})
export class HooksComponent {
@hallidev
hallidev / gist:300c50fa1bab3a44c3ee2fcb45c6eb1e
Created December 5, 2019 15:47
Emit MediatR Events to EventGrid
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MyApp.AppServices.Configuration;
using MyApp.AppServices.EventBus.Command;
using MyApp.AppServices.Model.EventGrid;
using Framework.EventBus.Command;
using Framework.Model;