/// <summary>
 /// 构建 ExtendBindData.cs 重定向
 /// </summary>
 static RedirectExtendBindData()
 {
     mapping = new RedirectMapping();
     mapping.Register("Alias", 1, 1, Alias_TAlias_IBindData);
     mapping.Register("OnResolving", 1, 2, new string[]
     {
         "CatLib.IBindData",
         "System.Action`1[T]"
     }, OnResolving_T_IBindData_Action1);
     mapping.Register("OnResolving", 1, 2, new string[]
     {
         "CatLib.IBindData",
         "System.Action`2[CatLib.IBindData,T]"
     }, OnResolving_T_IBindData_Action2);
     mapping.Register("OnAfterResolving", 1, 2, new string[]
     {
         "CatLib.IBindData",
         "System.Action`1[T]"
     }, OnAfterResolving_T_IBindData_Action1);
     mapping.Register("OnAfterResolving", 1, 2, new string[]
     {
         "CatLib.IBindData",
         "System.Action`2[CatLib.IBindData,T]"
     }, OnAfterResolving_T_IBindData_Action2);
     mapping.Register("OnRelease", 1, 2, new string[]
     {
         "CatLib.IBindData",
         "System.Action`1[T]"
     }, OnRelease_T_IBindData_Action1);
     mapping.Register("OnRelease", 1, 2, new string[]
     {
         "CatLib.IBindData",
         "System.Action`2[CatLib.IBindData,T]"
     }, OnRelease_T_IBindData_Action2);
 }
        /// <summary>
        /// 构建 App.cs 重定向
        /// </summary>
        static RedirectApp()
        {
            mapping = new RedirectMapping();

            mapping.Register("GetBind", 1, 0, GetBind_TService);
            mapping.Register("HasInstance", 1, 0, HasInstance_TService);
            mapping.Register("IsResolved", 1, 0, IsResolved_TService);
            mapping.Register("HasBind", 1, 0, HasBind_TService);
            mapping.Register("CanMake", 1, 0, CanMake_TService);
            mapping.Register("IsStatic", 1, 0, IsStatic_TService);
            mapping.Register("IsAlias", 1, 0, IsAlias_TService);
            mapping.Register("Alias", 2, 0, Alias_TAlias_TService);
            mapping.Register("Unbind", 1, 0, Unbind_TService);
            mapping.Register("Tag", 1, 1, Tag_TService_String);
            mapping.Register("Instance", 1, 1, Instance_TService_Object);
            mapping.Register("Release", 1, 0, Release_TService);
            mapping.Register("Make", 1, 1, Make_TService_ArrObject);
            mapping.Register("Factory", 1, 1, Factory_TService_ArrObject);
            mapping.Register("Type2Service", 1, 0, Type2Service_TService);

            RegisterExtend();
            RegisterBind();
            RegisterBindIf();
            RegisterSingleton();
            RegisterSingletonIf();
            RegisterOnRelease();
            RegisterOnResolving();
            RegisterOnAfterResolving();
            RegisterWatch();
        }
Exemple #3
0
 /// <summary>
 /// 构建 ExtendContainer.cs 重定向
 /// </summary>
 static RedirectExtendContainer()
 {
     mapping = new RedirectMapping();
 }
 /// <summary>
 /// 构建 Bindable_IBindData 重定向
 /// </summary>
 static RedirectBindable_IBindData()
 {
     mapping = new RedirectMapping();
     mapping.Register("Needs", 1, 0, Needs_TService);
 }
 /// <summary>
 /// 构建 GivenData_IMethodBind 重定向
 /// </summary>
 static RedirectGivenData_IMethodBind()
 {
     mapping = new RedirectMapping();
     mapping.Register("Given", 1, 0, Needs_TService);
 }