コード例 #1
0
        public AccountController(ApplicationUserManager userManager,
                                 ISecureDataFormat <AuthenticationTicket> accessTokenFormat, IApiDataRepository repo)
        {
            UserManager = userManager;
            IApiDataRepository _repo = repo;

            AccessTokenFormat = accessTokenFormat;
        }
コード例 #2
0
ファイル: Job.cs プロジェクト: codeimpossible/proggr
        public Job(JobDescriptor jobDescription, Guid workerId, ILocator locator)
        {
            _serviceLocator = locator;
            _jobRepository = locator.Locate<IJobRepository>();
            _apiRepository = locator.Locate<IApiDataRepository>();

            Id = jobDescription.Id;
            WorkerId = workerId;
            JobDescriptor = jobDescription;
        }
コード例 #3
0
        public Job(JobDescriptor jobDescription, Guid workerId, ILocator locator)
        {
            _serviceLocator = locator;
            _jobRepository  = locator.Locate <IJobRepository>();
            _apiRepository  = locator.Locate <IApiDataRepository>();

            Id            = jobDescription.Id;
            WorkerId      = workerId;
            JobDescriptor = jobDescription;
        }
コード例 #4
0
 public UpdateUserCodeLocationsJob(JobDescriptor jobDescription, Guid workerId, ILocator locator) : base(jobDescription, workerId, locator)
 {
     _apiDataRepository = locator.Locate<IApiDataRepository>();
     _codeLocationRepository = locator.Locate<ICodeLocationRepository>();
 }
コード例 #5
0
 public ProjectsController(IApiDataRepository repository)
 {
     _repository = repository;
 }
コード例 #6
0
 public UpdateUserCodeLocationsJob(JobDescriptor jobDescription, Guid workerId, ILocator locator) : base(jobDescription, workerId, locator)
 {
     _apiDataRepository      = locator.Locate <IApiDataRepository>();
     _codeLocationRepository = locator.Locate <ICodeLocationRepository>();
 }