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; }
protected WorkflowHandler(ViewContext context, CommandBus commandBus, IEntityIdGenerator idGenerator) { _context = context; _commandBus = commandBus; _idGenerator = idGenerator; }