Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public Matching(PairingParameters parameters)
     : base(parameters.Logger)
 {
     _parameters = parameters;
     _parameters.Logger.Info($"{nameof(Matching)} Instantiated.");
 }