|
@@ -159,12 +159,12 @@ namespace InABox.Core
|
|
var intf = Calculator.GetType().GetInterfaces()
|
|
var intf = Calculator.GetType().GetInterfaces()
|
|
.FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(ICoreAggregate<,,>));
|
|
.FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(ICoreAggregate<,,>));
|
|
if (intf != null)
|
|
if (intf != null)
|
|
- return intf.GenericTypeArguments.Skip(1).FirstOrDefault();
|
|
|
|
|
|
+ return intf.GenericTypeArguments[1];
|
|
|
|
|
|
intf = Calculator.GetType().GetInterfaces()
|
|
intf = Calculator.GetType().GetInterfaces()
|
|
.FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(ICoreAggregate<,>));
|
|
.FirstOrDefault(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(ICoreAggregate<,>));
|
|
if (intf != null)
|
|
if (intf != null)
|
|
- return intf.GenericTypeArguments.FirstOrDefault();
|
|
|
|
|
|
+ return intf.GenericTypeArguments[0];
|
|
|
|
|
|
throw new Exception("Unable to Locate Type Information for Aggregate");
|
|
throw new Exception("Unable to Locate Type Information for Aggregate");
|
|
}
|
|
}
|