Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScanEntryAssembly() seems to run twice if called in config #2

Open
brendanjerwin opened this issue Sep 12, 2011 · 1 comment
Open

Comments

@brendanjerwin
Copy link
Member

This:

      Runner.Configure(cfg => {
        cfg.ScanEntryAssembly();
        cfg.UseCallbackToInstantiateExports(ObjectFactory.GetInstance);
      }).Run(args);

Results in a runtime exception complaining that my single entry-point is defined twice. If I simply remove the call to ScanEntryAssembly then it all works just fine. I suspect it is running twice.

@jacebennett
Copy link
Member

Oops. I think this is a regression. I wish there was some sort of mechanism or practice that would help me verify that stuff still works when I make changes... =o/

Here's what I'm thinking:
This was originally intended to be called after DoNotScan().... makes less sense now, and doesn't actually say what it's doing. I'll rename that method to DoNotScanEntryAssembly(), and change both to set a flag to be evaluated after the config phase is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants