static void Main(string[] args) { string baseAddress = "http://*:80/"; using (WebApp.Start <Startup>(url: baseAddress)) { var whatever = new DummyDep(); var commandFactory = new DefaultGroupCommandFactory(whatever, whatever, whatever, whatever, whatever); new GroupsController(Synchronized(commandFactory), commandFactory); Thread.Sleep(Timeout.Infinite); } }
public static GroupCommandFactory Synchronized(DefaultGroupCommandFactory defaultGroupCommandFactory) { return(Generator.CreateInterfaceProxyWithTarget <GroupCommandFactory>( defaultGroupCommandFactory, new SynchronizingInterceptor())); }