/// <summary> /// Default ctor, requires an IUnityContainer /// </summary> /// <param name="container">The container.</param> /// <param name="containerInterface">The container interface.</param> public Container(dynamic container, Type containerInterface) { _container = container; _containerInterface = containerInterface; _viewStringLookup = new FluentStringLookup(GetView); _viewModelStringLookup = new FluentStringLookup(GetViewModel); LateBind(); }
/// <summary> /// Constructor, taking in an IKernel and list of assemblies that Views and ViewModel could be found in /// </summary> /// <param name="kernel"></param> /// <param name="kernelInterface"></param> /// <param name="assemblies"></param> public Container(dynamic kernel, Type kernelInterface, params Assembly[] assemblies) { _kernel = kernel; _kernelInterface = kernelInterface; _viewStringlookup = new FluentStringLookup(GetView); _viewModelStringLookup = new FluentStringLookup(GetViewModel); LateBind(); ReflectNamespaces(assemblies); }
/// <summary> /// Constructor, taking in an IKernel /// </summary> /// <param name="kernel"></param> /// <param name="kernelInterface"></param> public Container(dynamic kernel, Type kernelInterface) { _kernel = kernel; _kernelInterface = kernelInterface; _viewStringlookup = new FluentStringLookup(GetView); _viewModelStringLookup = new FluentStringLookup(GetViewModel); #if SILVERLIGHT var assembly = Assembly.GetCallingAssembly(); #else var assembly = Assembly.GetEntryAssembly() ?? Assembly.GetCallingAssembly(); #endif LateBind(); ReflectNamespaces(assembly); }
/// <summary> /// Default ctor, requires a MEF CompositionContainer /// </summary> /// <param name="container"></param> public Container(CompositionContainer container) { _container = container; _viewStringLookup = new FluentStringLookup(GetView); _viewModelStringLookup = new FluentStringLookup(GetViewModel); }
private Runtime() { _startLookup = new FluentStringLookup(StartView); }
/// <summary> /// Default ctor, requires a TinyIoCContainer /// </summary> /// <param name="container"></param> public Container(dynamic container) { _container = container; _viewStringLookup = new FluentStringLookup(GetView); _viewModelStringLookup = new FluentStringLookup(GetViewModel); }