Exemple #1
0
 /// <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();
 }
Exemple #2
0
        /// <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);
        }
Exemple #3
0
        /// <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);
        }
Exemple #4
0
 /// <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);
 }
Exemple #5
0
 private Runtime()
 {
     _startLookup = new FluentStringLookup(StartView);
 }
Exemple #6
0
 /// <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);
 }