I have a registry that scans a couple assemblies. However, for some of those interfaces found it needs to use a specific class, not the one that implements the convention IMyObject -> MyObject.
so after the scan I say For().Use();
however in the AssertConfigurationIsValid Method it blows up saying bla bla bla MyObject bla bla bla. so for some actual code.
Scan(x =>
{
x.TheCallingAssembly();
x.AssemblyContainingType<IUserRepository>();
x.AssemblyContainingType<IDocumentDataService>();
x.WithDefaultConventions();
});
For<ICommunityConfiguration>().Use<TestCommunityConfiguration>();
error is
Build Error on Instance 'HSTM.HLC.Common.CommunityConfiguration, HSTM.HLC.Common, Version=13.1.28.895, Culture=neutral, PublicKeyToken=0ecfe41405c30fb3' (Configured Instance of HSTM.HLC.Common.CommunityConfiguration, HSTM.HLC.Common, Version=13.1.28.895, Culture=neutral, PublicKeyToken=0ecfe41405c30fb3) for PluginType HSTM.HLC.Common.Interfaces.ICommunityConfiguration, HSTM.HLC.Common, Version=13.1.28.895, Culture=neutral, PublicKeyToken=0ecfe41405c30fb3
when I clearly asked for TestCommunityConfiguration. Some of these explicit overrides do seem to be working though which is kind of weird.
Any help would be appreciated.
--
You received this message because you are subscribed to the Google Groups "structuremap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structuremap-us...@googlegroups.com.
To post to this group, send email to structure...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/structuremap-users/-/jY0RPnGxLxUJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "structuremap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structuremap-us...@googlegroups.com.
To post to this group, send email to structure...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/structuremap-users/-/DRZLTBopMWEJ.
Regards,
Prabhjot
To unsubscribe from this group and stop receiving emails from it, send an email to structuremap-users+unsub...@googlegroups.com.