This file contains hidden or 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
internal class SubscribeObserver : IRunOnStartAndStop | |
{ | |
private readonly IBus _bus; | |
public SubscribeObserver(IBus bus) | |
{ | |
_bus = bus; | |
} | |
public void OnBeforeStart() |
This file contains hidden or 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
/// <reference path="../typings/browser.d.ts" /> | |
import React, { PropTypes } from 'react'; | |
interface TodoProps { | |
onClick: any; | |
completed: boolean; | |
text: string; | |
} |
This file contains hidden or 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, { PropTypes } from 'react' | |
const Todo = ({ onClick, completed, text }) => ( | |
<li | |
onClick={onClick} | |
style={{ | |
textDecoration: completed ? 'line-through' : 'none' | |
}} | |
> | |
{text} |
This file contains hidden or 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
public class Subscription | |
{ | |
public Subscription(SubscriptionId id, int maxSubscriptions) | |
{ | |
... | |
Dispatch(new SubscriptionCreated(..., maxSubscriptions)); | |
} | |
... | |
This file contains hidden or 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
source https://www.nuget.org/api/v2/ | |
nuget Nuget.CommandLine | |
nuget AggregateSource 0.0.300 framework: >= net452 | |
nuget AggregateSource.EventStore 0.0.300 framework: >= net452 | |
nuget Autofac 3.5.2 framework: >= net452 | |
nuget EventStore.Client 3.2.1 framework: >= net452 | |
nuget EventStore.Client.Embedded 3.2.1 framework: >= net452 | |
nuget EventStore.SerilogAdapter 1.0.0 framework: >= net452 | |
nuget Ix-Main 1.2.5 framework: >= net452 |
This file contains hidden or 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 Nest; | |
using System; | |
using System.Globalization; | |
namespace elasticsearch_nest_geoindex_demo | |
{ | |
public class Location | |
{ | |
public string Name { get; set; } |
This file contains hidden or 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 Autofac; | |
using Funq; | |
using System.Linq; | |
using System.Net; | |
using System.Reflection; | |
using System.Web; | |
using ServiceStack.ServiceInterface; | |
using ServiceStack.Common; | |
using ServiceStack.ServiceInterface.Admin; |
This file contains hidden or 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.Reflection; | |
using Autofac; | |
using Autofac.Core.Lifetime; | |
using Funq; | |
using Serilog; | |
using ServiceStack.Api.Postman; | |
using ServiceStack.Api.Swagger; | |
using ServiceStack.Logging; | |
using ServiceStack.Logging.Serilog; | |
using ServiceStack.ServiceInterface.Cors; |
This file contains hidden or 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
public class Global : HttpApplication | |
{ | |
private static AppHost _appHost; | |
protected void Application_Start(object sender, EventArgs e) | |
{ | |
_appHost = new AppHost(); | |
_appHost.Init(); | |
} |
This file contains hidden or 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
public class AutofacIocAdapter : IContainerAdapter | |
{ | |
private readonly IContainer _container; | |
public AutofacIocAdapter(IContainer container) | |
{ | |
_container = container; | |
} | |
private ILifetimeScope CurrentScope |