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; | |
using Autofac; | |
using Autofac.Core; | |
namespace ReactiveUI | |
{ | |
public class AutofacDependencyResolver : IMutableDependencyResolver |
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
// this is your bootstrapper | |
var builder = new ContainerBuilder(); | |
builder.RegisterAssemblyTypes(Assembly.GetExecutingAssembly()).AsImplementedInterfaces(); | |
// some other registrations here | |
var container = builder.Build(); | |
RxAppAutofacExtension.UseAutofacDependencyResolver(container); |
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
namespace crap | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Data.SqlClient; | |
public class PartialAppPlayground |
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
<!DOCTYPE html> | |
<head> | |
<title>HTML5 Camera Fun</title> | |
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
<script src="http://www.nihilogic.dk/labs/exif/exif.js" type="text/javascript"></script> | |
<script src="http://www.nihilogic.dk/labs/binaryajax/binaryajax.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// Wrapper around MPL-licensed http://www.nihilogic.dk/labs/binaryajax/binaryajax.js | |
// to support JavaScript typed arrays since binary strings are not supported in IE 10 | |
var createBinaryFile = function(uintArray) { |
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.Data; | |
using System.Data.SqlClient; | |
using NHibernate; | |
namespace NHibernate.Helpers | |
{ | |
public static class SqlProcedureHelper | |
{ |
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
public class GetEventStoreEventDispatcher | |
{ | |
private readonly IEventBus _eventBus; | |
private readonly EventStoreConnection _connection; | |
private bool _stopRequested; | |
private EventStoreAllCatchUpSubscription _subscription; | |
private readonly IPersistGetEventStorePosition _positionRepository; | |
public GetEventStoreEventDispatcher(EventStoreConnection connection, IEventBus eventBus, IPersistGetEventStorePosition positionRepository) |
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
public class AutofacIocAdapter : IContainerAdapter | |
{ | |
private readonly IContainer _container; | |
public AutofacIocAdapter(IContainer container) | |
{ | |
_container = container; | |
} | |
private ILifetimeScope CurrentScope |
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
public class Global : HttpApplication | |
{ | |
private static AppHost _appHost; | |
protected void Application_Start(object sender, EventArgs e) | |
{ | |
_appHost = new AppHost(); | |
_appHost.Init(); | |
} |
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.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 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; |
OlderNewer