示例#1
0
 public ContactBuilder(
     ILinkedinRepository linkedinRepository,
     IGoogleContactsRepository googleContactsRepository,
     string username)
 {
     this.linkedinRepository       = linkedinRepository;
     this.googleContactsRepository = googleContactsRepository;
     this.contact      = new Contact();
     this.username     = username;
     this.builderQueue = new Queue <Task>();
 }
 public ContactBuilder(
     ILinkedinRepository linkedinRepository,
     IGoogleContactsRepository googleContactsRepository,
     string username)
 {
     this.linkedinRepository       = linkedinRepository;
     this.googleContactsRepository = googleContactsRepository;
     this.contact  = new Contact();
     this.username = username;
     this.cancellationTokenSource = new CancellationTokenSource();
     this.cancellationToken       = cancellationTokenSource.Token;
     this.builderQueue            = new Queue <Task>();
 }
示例#3
0
 public HomeController(IGitHubRepository gitHubRepo, ILinkedinRepository linkedIn, IBlobStorageClient storage)
 {
     _gitHub   = gitHubRepo;
     _linkedIn = linkedIn;
     _storage  = storage;
 }