Exemple #1
0
        protected override void OnStart(string[] args)
        {
            if (string.IsNullOrWhiteSpace(Services.AccountService.IpcUri))
            {
                throw new ConfigurationValueException("Invalid IPC URI string.");
            }

            AccountDbContext = new AccountDatabaseContext();

            _accountHost = new ServiceHost <IAccountService, Services.AccountService>(new Services.AccountService(), Services.AccountService.IpcUri);
            _accountHost.Open();
        }
Exemple #2
0
 public AccountRepository(AccountDatabaseContext accountDatabaseContext)
 {
     _accountDatabaseContext = accountDatabaseContext ?? throw new ArgumentNullException(nameof(accountDatabaseContext));
 }