public object Create(Type t, string name) { if (t.IsAssignableFrom(typeof(Matching))) { if (!_matchingDict.ContainsKey(name)) { PairingParameters param = new PairingParameters(); if (param.Load(name)) { Matching instance = new Matching(param); _matchingDict.Add(name, instance); return(instance); } } else { return(_matchingDict[name]); } } return(null); }
public Matching(PairingParameters parameters) : base(parameters.Logger) { _parameters = parameters; _parameters.Logger.Info($"{nameof(Matching)} Instantiated."); }