Exemplo n.º 1
0
        public UnityComponent2([Dependency("MefComponent3")] IMefComponent1 mefComponent1,
                               IUnityService1 unityService1)
        {
            Debug.Assert(mefComponent1 != null);
            Debug.Assert(unityService1 != null);

            m_MefComponent1 = mefComponent1;
            m_UnityService1 = unityService1;
        }
Exemplo n.º 2
0
        public MefComponent3(IUnityService1 unityService1,
                             [Import("MefComponent2")] IMefComponent1 mefComponent1)
        {
            Debug.Assert(unityService1 != null);
            Debug.Assert(mefComponent1 != null);
            Debug.Assert(mefComponent1 is MefComponent2);

            m_UnityService1 = unityService1;
            m_MefComponent1 = mefComponent1;
        }
Exemplo n.º 3
0
        public UnityComponent2([Dependency("MefComponent3")] IMefComponent1 mefComponent1,
            IUnityService1 unityService1)
        {
            Debug.Assert(mefComponent1 != null);
            Debug.Assert(unityService1 != null);

            m_MefComponent1 = mefComponent1;
            m_UnityService1 = unityService1;
        }
Exemplo n.º 4
0
 public void UnityInvokedMethod([Dependency("UnityService2")] IUnityService1 unityService1)
 {
     m_UnityService1_1 = unityService1;
 }
Exemplo n.º 5
0
        public MefComponent3(IUnityService1 unityService1,
            [Import("MefComponent2")] IMefComponent1 mefComponent1)
        {
            Debug.Assert(unityService1 != null);
            Debug.Assert(mefComponent1 != null);
            Debug.Assert(mefComponent1 is MefComponent2);

            m_UnityService1 = unityService1;
            m_MefComponent1 = mefComponent1;
        }
Exemplo n.º 6
0
 public void UnityInvokedMethod([Dependency("UnityService2")] IUnityService1 unityService1)
 {
     m_UnityService1_1 = unityService1;
 }