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(); }
public AccountRepository(AccountDatabaseContext accountDatabaseContext) { _accountDatabaseContext = accountDatabaseContext ?? throw new ArgumentNullException(nameof(accountDatabaseContext)); }