Esempio n. 1
0
        internal UniformConfigurator RegisterViewContext(IContainer container)
        {
            var uniform = container.GetInstance<UniformContext>();
            var viewContext = new ViewContext(uniform);
            container.Configure(config => config.For<ViewContext>().Singleton().Use(viewContext));

            return this;
        }
Esempio n. 2
0
 protected WorkflowHandler(ViewContext context, CommandBus commandBus, IEntityIdGenerator idGenerator)
 {
     _context = context;
     _commandBus = commandBus;
     _idGenerator = idGenerator;
 }