/*生命周期枚举 InstanceScope: InstancePerDependency:When you resolve a component that is instance per dependency, you get a new one each time. SingleInstance:When you resolve a single instance component, you always get the same instance no matter where you request it. InstancePerLifetimeScope:When you resolve the instance per lifetime scope component, you get a single instance per nested scope (e.g., per unit of work). InstancePerMatchingLifetimeScope:When you create a nested lifetime scope, you have the ability to “tag” or “name” the scope. A component with per-matching-lifetime scope will have at most a single instance per nested lifetime scope that matches a given name. This allows you to create a sort of “scoped singleton” where other nested lifetime scopes can share an instance of a component without declaring a global shared instance. InstancePerRequest:Instance per request builds on top of instance per matching lifetime scope by providing a well-known lifetime scope tag, a registration convenience method, and integration for common application types. Behind the scenes, though, it’s still just instance per matching lifetime scope. InstancePerOwned:The Owned implicit relationship type creates new nested lifetime scopes. It is possible to scope dependencies to the owned instance using the instance-per-owned registrations. ThreadScope:Each thread executing through ThreadStart() will then get its own instance of MyThreadScopedComponent - which is essentially a “singleton” in the lifetime scope. Because scoped instances are never provided to outer scopes, it is easier to keep thread components separated. */ { "components": [ //{ // "type": "Tiger.Business.WMS.ReceiptInfo,Tiger.Business.WMS", // "services": [ // { // "type": "Tiger.IBusiness.IReceiptInfo,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, ////{ //// "type": "Tiger.Business.UpdateMReqStatus,Tiger.Business", //// "services": [ //// { //// "type": "Tiger.IBusiness.IUpdateMReqStatus,Tiger.IBusiness" //// } //// ], //// "autoActivate": true, //// "instanceScope": "per-dependency", //生命周期 //// "injectProperties": true ////}, //{ // "type": "Tiger.Business.Test_Z,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.ITest_Z,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.WMS.SrmToWms,Tiger.Business.WMS", // "services": [ // { // "type": "Tiger.IBusiness.ISrmToWms,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.MaterialInfoBusiness,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.IMaterialInfoBusiness,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.SrmDataToSiHua,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.ISrmDataToSiHua,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.OtherOutInfoBusiness,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.IOtherOutInfoBusiness,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.WMS.T100ToWMS.SaleOutInfoBusiness,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.WMS.T100ToWMS.ISaleOutInfoBusiness,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.TrasferInfoBusiness,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.ITrasferInfoBusiness,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.ProductOutputBusiness,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.IProductOutputBusiness,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.SplitBoxBusiness,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.ISplitBoxBusiness,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.ReworkBusiness,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.IReworkBusiness,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.ProductInputBusiness,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.IProductInputBusiness,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.StockInfoBusiness,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.IStockInfoBusiness,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.ProdMaterialReq,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.IProdMaterialReq,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //}, //{ // "type": "Tiger.Business.InventroyInfo,Tiger.Business", // "services": [ // { // "type": "Tiger.IBusiness.IInventroyInfo,Tiger.IBusiness" // } // ], // "autoActivate": true, // "instanceScope": "per-dependency", //生命周期 // "injectProperties": true //} ] } /*生命周期枚举 InstanceScope: InstancePerDependency:When you resolve a component that is instance per dependency, you get a new one each time. SingleInstance:When you resolve a single instance component, you always get the same instance no matter where you request it. InstancePerLifetimeScope:When you resolve the instance per lifetime scope component, you get a single instance per nested scope (e.g., per unit of work). InstancePerMatchingLifetimeScope:When you create a nested lifetime scope, you have the ability to “tag” or “name” the scope. A component with per-matching-lifetime scope will have at most a single instance per nested lifetime scope that matches a given name. This allows you to create a sort of “scoped singleton” where other nested lifetime scopes can share an instance of a component without declaring a global shared instance. InstancePerRequest:Instance per request builds on top of instance per matching lifetime scope by providing a well-known lifetime scope tag, a registration convenience method, and integration for common application types. Behind the scenes, though, it’s still just instance per matching lifetime scope. InstancePerOwned:The Owned implicit relationship type creates new nested lifetime scopes. It is possible to scope dependencies to the owned instance using the instance-per-owned registrations. ThreadScope:Each thread executing through ThreadStart() will then get its own instance of MyThreadScopedComponent - which is essentially a “singleton” in the lifetime scope. Because scoped instances are never provided to outer scopes, it is easier to keep thread components separated. */