Using better argument variable names

--HG--
branch : 1.x
This commit is contained in:
Louis DeJardin
2011-05-24 17:39:47 -07:00
parent 08ec2d3674
commit c771be816c
@@ -5,15 +5,15 @@ using Autofac.Core;
namespace Orchard.Environment {
internal class CollectionOrderModule : IModule {
public void Configure(IComponentRegistry componentRegistry) {
componentRegistry.Registered += (s, e) => {
componentRegistry.Registered += (sender, registered) => {
// only bother watching enumerable resolves
var limitType = e.ComponentRegistration.Activator.LimitType;
var limitType = registered.ComponentRegistration.Activator.LimitType;
if (typeof(IEnumerable).IsAssignableFrom(limitType)) {
e.ComponentRegistration.Activated += (s2, e2) => {
registered.ComponentRegistration.Activated += (sender2, activated) => {
// Autofac's IEnumerable feature returns an Array
if (e2.Instance is Array) {
if (activated.Instance is Array) {
// Orchard needs FIFO, not FILO, component order
Array.Reverse((Array)e2.Instance);
Array.Reverse((Array)activated.Instance);
}
};
}