This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This file contains 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
$random = [System.Security.Cryptography.RandomNumberGenerator]::Create(); | |
$buffer = New-Object byte[] 32; | |
$random.GetBytes($buffer); | |
[BitConverter]::ToString($buffer).Replace("-", [string]::Empty); |
This file contains 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; | |
namespace Example | |
{ | |
public abstract class ExecutionResult | |
{ | |
protected ExecutionResult(Guid aggregateId, Guid commandId, DateTime executedOn) | |
{ | |
AggregateId = aggregateId; | |
CommandId = commandId; |
This file contains 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
#addin "Cake.IIS" | |
#addin "Cake.Http" | |
#addin "Cake.Services" | |
using System; | |
string servidor = null; | |
var servidores = Argument<string>("AppServers", string.Empty).Split(','); | |
var appPoolOrService = Argument<string>("AppPoolOrService", string.Empty); |
This file contains 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.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
namespace FileAnalyzer | |
{ | |
public class Record | |
{ | |
public DateTime Start => DateTime.Parse(_line.Split(' ')[0]); |
This file contains 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
void Main() | |
{ | |
var pushId = FirebasePushIDGenerator.GeneratePushID(); | |
Console.WriteLine(pushId); | |
Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); | |
Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); | |
Thread.Sleep(5); | |
Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); | |
Thread.Sleep(5); | |
Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); |
This file contains 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.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
/* | |
Some helpful Linq extensions I've used with Unity. | |
Original code from stackoverflow.com where user contributions are | |
licensed under CC-BY-SA 3.0 with attribution required. |
- You are using GitFlow
- You want to deploy a new version of your software every time a commit is made to the develop branch
- You are using Octopack to package your application for deployment
Instructions
Once upon a time…
I once took notes (almost sentence by sentence with not much editing) about the architectural design concepts - Command and Query Responsibility Segregation (CQRS) and Event Sourcing (ES) - from a presentation of Greg Young and published it as a gist (with the times when a given sentence was heard).
I then found other summaries of the talk and the gist has since been growing up. See the revisions to know the changes and where they came from (aka the sources).
It seems inevitable to throw Domain Driven Design (DDD) in to the mix.
NewerOlder