I've been trying to figure this for a few days now, with no luck.
I'm trying to use the [ImportMany] to import from a directory full of DLL's with exports of type IEditorSystem, that have custom metadate of type IEditorSystemMetadata. I'd like to get the metadata first, and push it out to some textboxs etc so the user can choose which E...
Im trying to determine if MEF (from codeplex) is right for my needs.
I know MEF supports on-demand loading of Xap files.
But does anybody know if it supports on-demand loading of silverlight libraries (dll's)?
Thanks.
...
Hello,
I am developing an extension to add graphics around code (text).
I've searched around and came up with only one other post refering to IWpfTextView (and related) interfaces.
What i want is to "markup" the code with (ex) arrows, boxes and lines. I've read through the mdsn and it seems scrolling up and down does a complete redraw...
[I have read previous posts on MEF vs MAF vs DI etc, they aren't helping me with my specific problem]
I am looking to write a .Net application (probably console or Windoes service) which will be extensible. It is an overnight/schedule app to extract data from a database, do something with it, and then output it (or pass it on to anothe...
Hi all,
My question title sounds a little bit difficult - sorry. I'm new in MEF :-).
My scenario:
public class MainClass
{
[ImportMany(typeof(ITest))]
private List<ITest> Tests { get; set; }
public MainClass()
{
Init();
}
private void Init()
{
DirectoryCatalog catalog = new DirectoryCatalog(@"./");
Compos...
My application is using MEF to export some classes from an external assembly. These classes are setup for constructor injection. The issue I am facing is that
MEF is attempting to instantiate the classes when I try to access them. Is there a way to have Ninject take care of the instantiation of the class?
IEnumerable<Lazy<IMyInterface>...
Hello,
I often use MEF in my applications but I cannot figure out if there is some way to know if a particular type contains composition members. I could do it easily by retrieving member attributes using reflection but I was wondering if there was already a helper class or something like this which could do this work for me.
At least ...
Hi,
I have a a class called "ViewFactory" and this class should deliver the right view
right now it has only one method (and it will grow) which I want to write a unit test against.
the class looks like this...
public class ViewFactory
{
[ImportMany(AllowRecomposition=true)]
IEnumerable<ExportFactory<DependencyObject, I...
Hi,
Im looking at using MEF to load plugins into my application to allow for customisation, and have a couple of quick question that I not seen answered in the sample apps I have looked at:
1) Can MEF only load XAP files from the web site hosting the main XAP
2) Do I need to create a "Silverlight Application" project for each plugin o...
Hi there,
I've a list of usercontrols which I've had imported via ImportMany Attribute. See the following code segment :
[ImportMany]
private List<Lazy<IUserControl, ILinkerMetadata>> UserControlsMetaData { get; set; }
So if I add each Lazy data record to a e.g. combobox, the data record won't be load, because it's tagged as Lazy (c...
I think im starting to understand how to use MEF now. But im still not sure what the best way of utilizing MEF in order to handle controlling user access.
For example: Im using the silverlight navigation framework. And each navigation menu item is to be either disabled or not shown at all if a particular user has rights (i.e. roles, cla...
Hi,
I have an app based on Prism (v4 ctp) and MEF.
The app has a service IService1. I want this service implementation was exported by some module (not just discovered by MEF)
public interface IService1 {}
public class Service1Impl: IService1 {}
Service1Impl doesn't have ExportAttribute. This' because I want to create the implementati...
Hi Stackies,
I am curruntly working as an internship in a company who want to try to make software for the linux platform. Since they are a .net minded company, they want me to lookin to mono.
I kinda have to look if it stable for their applications and server apps.
I am now studieing the MEF and MAF ( Managed AddIn Framework ) framewo...
I've got a circular dependency that recently came about because of a change in my application architecture.
The application relies on a plugin manager that loads plugins via MEF. Everything up until worked fine, because it looked something like this:
// model.cs
[Export("Model")]
public class Model
{
public PluginManager PM { get; s...
Hello,
I am wondering what is the best way to use NLog with Managed Extensibility Framework (MEF)?
I have an application that support plugins using MEF architecture (Import and Exports etc)
I want to add logging capability to my application.
As a logging component I want to use NLog.
What would you recommend?
1. Create a wrapper for N...
I am creating a C# winforms application targeting the .NET 3.5 framework. I want this program to be able to have plugins. Hopefully the plugins can be created in unmanaged C++. If there is no direct way to make a plugin in C++, then i would like the know the easiest plugin framework that would allow me to make a simple C# wrapper for ...
I've used MEF for a few projects at work and I've just stared messing about with Monorail in my spare time. I was wondering if there was any way that I could use MEF to load the controllers that Monorail uses. Monorail appears to look for controllers in assemblies that you list in the Web.Config:
<controllers>
<assembly>my.assembly</a...
Hi,
The following code is in a MEF MVVM desktop application.
The Shell is already build, but a Module is initialising.
The Module wants to add text to a ContentControl in the Shell, but the following code does not cause the change to be seen in the Shell Window.
Any suggestions as to how I get the window to update.
thanks
[Importin...
Found several good(related) questions here and here but all are nearly a year old.
I will like to know in the current context of Prism development what is better or at least scenario where each is better.
...
So intead of using ExportMetadata attribute, why not just extend the interface instead?
...