/*生命周期枚举 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.Transaction.ShelfRemote,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IShelfRemote,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.CustomerSupplyInNew,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.ICustomerSupplyInNew,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.CustSupplyCheckingNew,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.ICustSupplyCheckingNew,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.InMatStorage,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IInMatStorage,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.InProductionReturn,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IInProductionReturn,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.InFinished,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IInFinished,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.OutWorkOrder,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IOutWorkOrder,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.InReceipt,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IInReceipt,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.ItemQuery,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IItemQuery,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.LocationTransfer,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.ILocationTransfer,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.OtherInLocation,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IOtherInLocation,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.OtherInLocationChecking,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IOtherInLocationChecking,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.OutOther,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IOutOther,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.OutSale,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IOutSale,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.OutSplit,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IOutSplit,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.OutTransfer,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IOutTransfer,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.ProductionMaterialReq,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IProductionMaterialReq,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.WmsCount,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IWmsCount,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.Resell,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.IResell,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.CustomerSupplyIn,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.ICustomerSupplyIn,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // }, // { // "type": "Tiger.Business.WMS.Transaction.CustSupplyChecking,Tiger.Business", // "services": [ { "type": "Tiger.IBusiness.ICustSupplyChecking,Tiger.IBusiness" } ], // "autoActivate": true, // "injectProperties": true, // "instanceScope": "InstancePerDependency" //生命周期 // } ] } /*生命周期枚举 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. */