Exemplo n.º 1
0
 private void Ready()
 {
     Receive <CanAcceptJob>(job =>
     {
         _coordinator.Tell(job);
         _repoJob = job.Repo;
         BecomeAsking();
     });
 }
 private void BecomeWorking(Messages.RepoKey repo)
 {
     _receivedInitialUsers = false;
     _currentRepo          = repo;
     _subscribers          = new HashSet <IActorRef>();
     _similarRepos         = new Dictionary <string, SimilarRepo>();
     _publishTimer         = new Cancelable(Context.System.Scheduler);
     _githubProgressStats  = new GithubProgressStats();
     Become(Working);
 }
 private void BecomeWorking( Messages.RepoKey repo )
 {
     _receivedInitialUsers = false;
     _currentRepo = repo;
     _subscribers = new HashSet<IActorRef>();
     _similarRepos = new Dictionary<string, SimilarRepo>();
     _publishTimer = new Cancelable( Context.System.Scheduler );
     _githubProgressStats = new GithubProgressStats();
     Become( Working );
 }
Exemplo n.º 4
0
 public UnableToAcceptJob(Messages.RepoKey repo)
 {
     Repo = repo;
 }
Exemplo n.º 5
0
 public CanAcceptJob(Messages.RepoKey repo)
 {
     Repo = repo;
 }
Exemplo n.º 6
0
 public QueryStarrers(Messages.RepoKey key)
 {
     Key = key;
 }
Exemplo n.º 7
0
 public LaunchRepoResultsWindow(Messages.RepoKey repo, IActorRef coordinator)
 {
     Repo        = repo;
     Coordinator = coordinator;
 }
Exemplo n.º 8
0
 private void Ready()
 {
     Receive<CanAcceptJob>( job =>
     {
         _coordinator.Tell( job );
         _repoJob = job.Repo;
         BecomeAsking();
     } );
 }
 public JobFailed(Messages.RepoKey repo)
 {
     Repo = repo;
 }
Exemplo n.º 10
0
 private void SendUnableToAcceptJob(IActorRef actor, Messages.RepoKey job)
 {
     actor.Tell(new GithubCommanderActor.UnableToAcceptJob(job));
 }
Exemplo n.º 11
0
 private void SendAbleToAcceptJob(IActorRef actor, Messages.RepoKey acceptedJob)
 {
     actor.Tell(new GithubCommanderActor.AbleToAcceptJob(acceptedJob));
 }
Exemplo n.º 12
0
 public BeginJob(Messages.RepoKey repo)
 {
     Repo = repo;
 }