mef Questions
1
I'm trying to create an MVC4 web app using a number of plugins, i.e. essentially controllers exported via MEF plus content files unpacked into their proper locations. I found a lot of material abou...
Fango asked 12/12, 2012 at 9:31
3
Solved
2
I have been searching about the dependency injection and read a few articles.
But still I am unable to find out the difference between MEF and other IoC's.
So, my question is this: In which situati...
Manometer asked 22/3, 2013 at 14:5
3
Solved
2
Solved
After much digging about I figured it's possible to use MEF for DI in MVC4, below SO link gives a couple of examples:
How to integrate MEF with ASP.NET MVC 4 and ASP.NET Web API
They work fine, b...
Glauconite asked 18/5, 2013 at 16:40
5
Solved
I am looking for a simple and secure way to access plugins from a .NET application. Although I imagine that this is a very common requirement, I am struggling to find anything that meets all my nee...
Soldo asked 10/11, 2010 at 14:51
1
Solved
1
Hey I wonder if someone could help me. I try to bind my imported test modules to my view, see below for code:
<UserControl x:Class="AvanadeTT.Controls.Views.Module"
xmlns="http://schemas.micro...
2
I have a MEF-based application that can be customized with plugins. This application has several imported parts, and I want to remove some of them at runtime (to be able to delete the .dll that con...
2
I have already searched some tutorials and even looked pluralsite Introduction to PRISM. However, most examples based on using unity containers and the some lack of information on how to implement ...
1
I'm looking for a good implementation of hot-swapping done in .NET. The things I need are:
Being able to deploy DLLs in a particular folder and have a running system pick them up.
Having the runn...
2
Solved
I'm thinking of using MEF to solve a plugin management requirement. In the blurb it says "no hard dependencies" but as far as I can see, there is a hard dependency on the import/export interface.
...
Terrarium asked 25/2, 2013 at 1:24
2
Solved
I have some plugins as dll files. My application loads the dll and it runs fine. but when I try to delete the old plugin and replace it with a new plugin it doesn't allow to do me. as it has been l...
2
I'm using MEF and the System.ComponentModel.Composition.dll to load some dll.
I'm doing something like :
AggregateCatalog catalog = new AggregateCatalog(new AssemblyCatalog(Assembly.GetExecutingA...
Girondist asked 4/1, 2011 at 15:28
2
Solved
I am trying to create a POC with mef where i have the requirement to load dll dynamically in an all ready running project , for this i have created one console application project and a class Libra...
2
Solved
I have a Winforms desktop application that is loading multiple MEF parts with the same Interface type.
Problem:
When I try to load more than one of the same type I get the following exception:
Th...
2
Solved
I have a WPF app running, which needs all operations that affect the UI to be on the UI Thread. WPF also provides a Dispatcher class that handles this - so I extracted that into a dependency.
publ...
5
Solved
I was reading somewhere that with MEF I can simply drop a dll into a directory and my application (with some MEF magic) will be able to read it and execute the code in it?
Hopefully only classes th...
Pahoehoe asked 24/5, 2010 at 17:29
4
I am using Prism 4 with MEF Extensions and the MVVM pattern. During initialization in a module I call RegisterViewWithRegion(RegionNames.MyRegion, typeof(MyView)) which works perfectly when the vie...
2
Solved
I can't seem to find any articles or links to how to do this and it seems like an obvious problem (eg when you don't have the source code or want to use existing types not written for MEF in mind)
...
1
I'm building an MVC 3 application where MEF is used. The main idea is to have plug-in mechanism where models, controllers and views are loaded dynamically during runtime from mef container.
Each p...
Bleak asked 27/11, 2011 at 12:16
4
Solved
Looking at Microsoft's Managed Extensibility Framework (MEF) and various IoC containers (such as Unity), I am failing to see when to use one type of solution over the other. More specifically, it s...
Collectivize asked 17/8, 2009 at 14:47
1
I'm having problems with MEF not picking up dependencies for loaded components. We have a directory structure that looks like:
C:/MSMQ/DistributionService/[Main application]
C:/MSMQ/Providers/[pl...
Pesticide asked 5/11, 2012 at 12:13
3
Solved
Scenario: I am using Managed Extensibility Framework to load plugins (exports) at runtime based on an interface contract defined in a separate dll. In my Visual Studio solution, I have 3 different ...
3
I am trying to stop my application locking DLLs in my MEF plugin directory so that I can overwrite the assemblies at runtime (note I'm not actually trying to have MEF reload them on the fly, at the...
Gastronome asked 26/9, 2012 at 1:22
© 2022 - 2024 — McMap. All rights reserved.