Esempio n. 1
0
        protected override void Setup(FeatureConfigurationContext context)
        {
            var dataBus = new CustomDataBus();

            context.Services.AddSingleton <IDataBus>(dataBus);
        }
        protected override void Setup(FeatureConfigurationContext context)
        {
            var dataBus = new CustomDataBus();

            context.Container.ConfigureComponent(b => dataBus, DependencyLifecycle.SingleInstance);
        }