예제 #1
0
 public ServiceState(IRepositoryState repositoryState,
                     IUnitOfWork unitOfWork,
                     INotifier notifier,
                     IRepositoryCountry repositoryCountry) : base(notifier)
 {
     _repositoryState   = repositoryState;
     _unitOfWork        = unitOfWork;
     _repositoryCountry = repositoryCountry;
 }
예제 #2
0
 public Repository(IRepository implementation, string name, string location,
                   IRepositoryState internalState, IServiceProvider services)
 {
     _logger        = LogHelper.GetLoggerWithIdentifier(this, name);
     _internalState = internalState;
     _services      = services;
     _dispatcher    = services.Get <IDispatcher>();
     _eventManager  = services.Get <IEventManager>();
     Location       = location;
     Implementation = implementation;
     Name           = name;
     Identifier     = internalState.Identifier;
     Load();
 }
예제 #3
0
 public Repository(IRepositoryState repositoryState, IFileProvider fileProvider)
 {
     _repositoryState = repositoryState;
     _fileProvider    = fileProvider;
 }
 public void Post([FromServices] IRepositoryState repositoryState)
 {
     repositoryState.CheckForUpdates().Subscribe();
 }
예제 #5
0
 public ManagementController(IRepositoryState repositoryState, IBranchSettings branchSettings)
 {
     this.repositoryState = repositoryState;
     this.branchSettings  = branchSettings;
 }