Esempio n. 1
0
 public StravaService(
     IApiFactory apiFactory,
     ILocalRepo <StravaActivity> activitiesRepo,
     ICurrentUserService userService,
     IMapperService mapper)
 {
     this.stravaApi      = apiFactory.Api <IStravaApi>();
     this.activitiesRepo = activitiesRepo;
     this.userService    = userService;
     this.mapper         = mapper;
 }
        public CurrentUserService(ILocalRepo <User> repo)
        {
            this.repo = repo;

            InitializeCurrentUser();
        }
Esempio n. 3
0
 public static ILocalRepo New(ILocalRepo impl)
 {
     return new SyncClientRepo(impl);
 }
Esempio n. 4
0
 private LocalDispatcher(IIoC ioc)
 {
     _counters = new Counters();
     _log = ioc.Resolve<ILogFile>();
     _lrepo = ioc.Resolve<ILocalRepo>();
 }
Esempio n. 5
0
 private SyncClientRepo(ILocalRepo impl)
 {
     _impl = impl;
 }