mef Questions
4
Solved
3
Solved
I'm doing my first project with MEF and am seriously unable to understand how to use lazy loading. My code is -
public static class MefLoader
{
private static CompositionContainer Container;
[I...
4
Solved
To what extent, if any, is MEF a replacement for PRISM?
Lewislewisite asked 24/8, 2009 at 20:51
3
I'm new to VS extension development. I'm currently working with the text adornment sample in VS 2015 and have been able to get coloured boxes showing correctly. Now I want to extend the sample so t...
1
Is there a way to cache MEF components graph per-application startup (WPF), like the MAF do to avoid discovering the directories and constructing the components graph every application startup. in ...
Labia asked 4/7, 2016 at 13:14
1
I have the project structure as follows:
Modules
--- ModuleA
---ViewA
---ViewModelA
---Module
--- ModuleB
---ViewB
---ViewModelB
---Module
MyApplication
---Shell.xaml
---Bootstrapper
MyA...
4
Solved
Let's say that I have a few applications in a folder (each application has subfolders where plugins can be located):
Clients
Application A
...
Application B
...
Application C
...
...
So...
2
I am working on Portable Class Library(PCL) and trying to achieve MEF in that. I used System.Composition from Nuget. When i build and package for vsix (Extension for Visual Studio) it doesn't packa...
Configurationism asked 13/4, 2016 at 10:40
3
Solved
I am trying to build a MVC4/MVC5 application with a pluggable architecture like Orchard CMS. So I have a MVC application which will be the startup project and take care of auth, navigation etc. The...
Curtiscurtiss asked 9/1, 2014 at 10:4
5
We're using .NET 4.5 and have had no problem with open generic exports in MEF up until a month ago when it suddenly stopped working. 70 tests on our CI server turned red and we traced it down to mi...
1
Solved
So, I was trying to get this simple test working in an F# console app:
open System.Reflection
open System.ComponentModel.Composition
open System.ComponentModel.Composition.Hosting
[<Export(typ...
4
Solved
I am using prism framework in a silverlight app with multiple modules in separate XAPs.
I have a resource dictionary defined in my in my shell project. In my modules I can use the resources fine, ...
Hosey asked 17/8, 2011 at 15:14
1
Solved
I am trying to understand MEF and I am seeing references to MEF and MEF 2.
This site lists MEF2 as being much faster than MEF (4.0).
I need to understand what I am talking about when most people...
1
I need to create custom WPF Behavior with some dependencies injected in custructor, I can't use constructor injection because I need to apply that in XAML, WPF creates instance with default constru...
Dhow asked 13/10, 2015 at 8:13
1
Solved
I load my modules in the bootstrapper with:
protected override IModuleCatalog CreateModuleCatalog()
{
var moduleCatalog = new DirectoryModuleCatalog();
moduleCatalog.ModulePath = @".\Modules";...
3
Solved
I'm trying to figure out MEF's Constructor Injection attribute. I have no idea how I tell it to load the constructor's parameters.
This is the property I'm trying to load
[ImportMany(typeof(BUser...
Opportune asked 5/1, 2010 at 18:19
1
I have a class:
public abstract class XTimeViewModel : DevExpress.Xpf.Mvvm.ViewModelBase
{
public bool PropertiesChanged { get; set; }
[NotifyPropertyChangedInvocator]
protected virtual void _...
Anosmia asked 30/4, 2014 at 6:45
2
Solved
I checked a lot of MEF questions here but I can't imagine what my problem is. Here's what's happening:
I have a desktop WPF app that I'm deploying with AdvancedInstaller. I use .NET 4.0 and MEF to...
1
I'm looking to create my first app with PRISM, I downloaded it(the V5), I'm quite ready to got, but there is still something that bother me.
Unity or MEF.
Is there any thing that I cannot do if I...
Osmic asked 10/8, 2015 at 13:38
3
Solved
1
Solved
Can we inject dependency as method parameter instead of constructor parameter either using MEF or Autofac?
Thanks
Kenosis asked 12/7, 2015 at 18:18
3
In my Asp.Net MVC application, i have some view file (.cshtml) which has reference to an external library which it will be loaded at runtime. so after app started, i load the assembly by Assembly.L...
Artifice asked 28/6, 2015 at 6:43
3
Solved
I have an interface:
[InheritedExport(typeof(IMetric))]
public interface IMetric { ... }
I have a Meta attribute interface:
public interface IMetricAttribute { ... }
and an attribute that i...
1
We are implementing a plug and play module for our application where user can load and unload the desired class library at runtime. So I have decided to use MEF and shadow copying of class librarie...
1
It's very possible that I just don't understand the problem space, but I'm having trouble figuring out the MEF (Editor Classifier project).
I've created (piecing together the Walkthrough guides fr...
Demagogue asked 15/5, 2015 at 6:17
© 2022 - 2024 — McMap. All rights reserved.