예제 #1
0
        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);
            }
        }
예제 #2
0
 public static GroupCommandFactory Synchronized(DefaultGroupCommandFactory defaultGroupCommandFactory)
 {
     return(Generator.CreateInterfaceProxyWithTarget <GroupCommandFactory>(
                defaultGroupCommandFactory, new SynchronizingInterceptor()));
 }