Esempio n. 1
0
        public void Init()
        {
            var config = new ConfigurationBuilder()
                         .AddUserSecrets(Constants.SecretKey)
                         .Build();

            var ybpConnectionString       = config["YbpConnectionString"];
            var ybpSampleConnectionString = config["YbpSampleAppConnectionString"];

            var c = new ServiceCollection();

            c.AddLogging();
            c.InitDataContext(ybpSampleConnectionString);
            c.InitYbpDataContext(ybpConnectionString);

            c.InitBLServices();

            c.AddSingleton(new YbpUserContext {
                { "UserId", 75675 }
            });

            var t = c.ToList();

            serviceProvider = c.BuildServiceProvider();

            _bp = serviceProvider.GetService <IYbpEngine>();
        }
Esempio n. 2
0
 public UpdateCompanyAction(
     IYbpEngine engine,
     ICompanyValidator companyValidator,
     ICompanyWriter companyWriter
     )
     : base(engine)
 {
     _companyValidator = companyValidator;
     _companyWriter    = companyWriter;
 }
Esempio n. 3
0
 public YbpFirstAction(IYbpEngine engine) : base(engine)
 {
 }
Esempio n. 4
0
 public YbpAction(IYbpEngine engine) : base(engine)
 {
 }
Esempio n. 5
0
 public SendInvitation(IYbpEngine engine) : base(engine)
 {
 }
Esempio n. 6
0
 public CreateUserAction(IYbpEngine engine, AppUserManager userManager) : base(engine)
 {
     _userManager = userManager;
 }
Esempio n. 7
0
 public YbpActionBase(IYbpEngine engine)
 {
     _engine = engine;
 }