public void Store <TModel>(ISubProtocolModelFactory <TModel> factory, string subprotocol)
 {
     instances.Add(subprotocol, factory);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Set the factory to use for the specified sub protocol
 /// </summary>
 /// <typeparam name="TModel">The type of the model that the factory creates</typeparam>
 /// <param name="factory">An instance of the factory class</param>
 /// <param name="subprotocol">the sub protocol that this factory should be used for</param>
 public void SetSubProtocolModelFactory <TModel>(ISubProtocolModelFactory <TModel> factory, string subprotocol)
 {
     ModelFactories.Store(factory, subprotocol);
 }