Ejemplo n.º 1
0
 /// <summary>
 /// Creates Remute instance.
 /// Configuring which constructor to use (if there are multiple) and how to map property to parameter names (if names do not match).
 /// </summary>
 /// <param name="activationConfiguration">Immutable object creation configurations.</param>
 public Remute(ActivationConfiguration activationConfiguration)
 {
     ActivationConfiguration        = activationConfiguration ?? throw new ArgumentNullException(nameof(activationConfiguration));
     ActivationContextCache         = new ConcurrentDictionary <ActivationContextCacheKey, ActivationContext>();
     ResolveInstanceExpressionCache = new ConcurrentDictionary <InstanceExpressionCacheKey, Delegate>();
 }
Ejemplo n.º 2
0
 public Remute(ActivationConfiguration activationConfiguration)
 {
     ActivationConfiguration = activationConfiguration;
     ActivationContextCache  = new Dictionary <Type, ActivationContext>();
 }