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.Linq; | |
using System.Threading.Tasks; | |
using System.Web.Http; | |
using SignalR.Client; | |
using SignalR.Client.Hubs; | |
using SignalR.Hubs; | |
namespace EventDay.Web.Api.Controllers |
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.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Net; | |
namespace EventStoreService | |
{ | |
public class EventStoreService | |
{ |
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
EventStoreConnection connection = get your connection; | |
string streamName = GetStreamName(aggregate); | |
//try to read the slice | |
var slice = connection.ReadStreamEventsForward(streamName, 0, int.MaxValue, false); | |
if (slice.Status == SliceReadStatus.StreamNotFound) | |
{ | |
//create the stream if doesn't exist. | |
//NOTE: isJson MUST be true for this to work. |
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 ConsoleApplication2 | |
{ | |
internal class Program | |
{ | |
private static void Main() | |
{ | |
var bar = UniversalFactory.Create<Bar>(23); | |
Console.Out.WriteLine(bar); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<solution> | |
<add key="disableSourceControlIntegration" value="true" /> | |
</solution> | |
<packageSources> | |
<add key="nuget.org" value="https://www.nuget.org/api/v2/" /> | |
<add key="eventday" value="http://www.myget.org/f/aspnetwebstacknightly/" /> | |
</packageSources> | |
</configuration> |
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
//------------------------------------------------------------------------------ | |
// <auto-generated> | |
// This code was generated by a tool. | |
// Runtime Version:4.0.30319.0 | |
// | |
// Changes to this file may cause incorrect behavior and will be lost if | |
// the code is regenerated. | |
// </auto-generated> | |
//------------------------------------------------------------------------------ |
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
var express = require('express'); | |
var session = require('express-session'); | |
var RedisStore = require('connect-redis')(session); | |
var Strategy = require('./passport-openidconnect/index').Strategy; | |
module.exports.configure = function configure(app, passport) { | |
var identityServer = 'https://users.xxx.com/identity'; | |
var auth = { |
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
import { GraphQLScalarType } from 'graphql'; | |
import { GraphQLError } from 'graphql/error'; | |
import { Kind } from 'graphql/language'; | |
import moment from 'moment'; | |
import tz from 'moment-timezone'; | |
function coerceDate(value) { | |
if(typeof value === 'string') | |
value = moment(value); |
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
import React, {Component, PropTypes} from 'react'; | |
import {SubscriptionProvider} from 'relay-subscriptions' | |
import uuid from 'uuid' | |
const outgoing = { | |
subscribe: 'subscribe', | |
ping: 'ping' | |
}; | |
const incoming = { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<configSections> | |
<section name="akka" type="Akka.Configuration.Hocon.AkkaConfigurationSection, Akka" /> | |
</configSections> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> | |
</startup> | |
<akka> |