The following are all injection-related configuration nodes. to upgrade your project from workflow 3.0 to workflow 4.0, add the following configuration sections.
<? XML version = "1.0" encoding = "UTF-8" ?>
< Configuration >
< Configsections >
< Section Name = "Unity" Type = "Microsoft. Practices. Unity. configuration. unityconfigurationsection, Microsoft. Practices. Unity. Configuration" />
</ Configsections >
< System. Web >
< Httpmodules >
< Add Name = "Unitymodule" Type = "Infoweb. unitymodule, infoweb" />
</ Httpmodules >
</ System. Web >
< System. Webserver >
< Modules >
< Add Name = "Unitymodule" Type = "Infoweb. unitymodule, infoweb" />
</ Modules >
</ System. Webserver >
< Unity >
< Typealiases >
<! -- Lifetime manager types -->
< Typealias Alias = "Singleton" Type = "Microsoft. Practices. Unity. containercontrolledlifetimemanager, Microsoft. Practices. Unity" />
< Typealias Alias = "Securityprovider" Type = "Waygo. Enterprise. providers. securityprovider, waygo. Enterprise. providers" />
< Typealias Alias = "Organizationprovider" Type = "Waygo. Enterprise. providers. organizationprovider, waygo. Enterprise. providers" />
< Typealias Alias = "Connectionnametypeconverter" Type = "Waygo. Enterprise. util. connectionnametypeconverter, waygo. Enterprise. util" />
< Typealias Alias = "Idbconnection" Type = "System. Data. idbconnection, system. Data, version = 2.0.0.0, culture = neutral, publickeytoken = b77a5c561934e089" />
< Typealias Alias = "Isecurityobjecthelper" Type = "Bingosoft. workflow. providers. DB. isecurityobjecthelper, bingosoft. workflow. providers. DB" />
< Typealias Alias = "Iapplicationhelper" Type = "Bingosoft. workflow. wfapi. iapplicationhelper, bingosoft. workflow. wfapi" />
</ Typealiases >
< Containers >
< Container Name = "Session" >
< Types >
< Type Type = "Organizationprovider" Mapto = "Bingosoft. workflow. providers. DB. dbwaygoorganizaiontprovider, bingosoft. workflow. providers. DB" >
< Lifetime Type = "Singleton" />
</ Type >
< Type Type = "Securityprovider" Mapto = "Bingosoft. workflow. providers. DB. dbwaygosecurityprovider, bingosoft. workflow. providers. DB" >
< Lifetime Type = "Singleton" />
</ Type >
< Type Type = "Bingosoft. workflow. providers. DB. organizationdb, bingosoft. workflow. providers. DB" >
< Typeconfig Extensiontype = "Microsoft. Practices. Unity. configuration. typeinjectionelement, Microsoft. Practices. Unity. Configuration" >
< Constructor >
< Param Name = "Connection" Parametertype = "Idbconnection" >
< Value Value = "Center" Type = "Idbconnection" Typeconverter = "Connectionnametypeconverter" />
</ Param >
</ Constructor >
</ Typeconfig >
</ Type >
< Type Type = "Isecurityobjecthelper" Mapto = "Bingosoft. workflow. providers. DB. securityobjecthelper, bingosoft. workflow. providers. DB" >
</ Type >
< Type Type = "Iapplicationhelper" Mapto = "Bingosoft. workflow. wfapi. applicationhelper, bingosoft. workflow. wfapi" >
< Lifetime Type = "Singleton" >
</ Lifetime >
</ Type >
</ Types >
</ Container >
</ Containers >
</ Unity >
</ Configuration >