Beispiel #1
0
        private static void SampleQueryHandlerWithInstance()
        {
            var injector = new SimpleInjector();

            var queryBus = new QueryBus(injector);

            queryBus.RegisterInstance(new TestQueryHandler());

            var query    = new TestQuery("srn");
            var response = queryBus.Handle(query);

            Console.WriteLine(response.Message);
        }