public static void Add <T>(ContainerBridge <T> bridge) { if (bridge == null) { throw new ArgumentNullException(nameof(bridge)); } var type = typeof(T); if (!SupportTypes.ContainsKey(type)) { SupportTypes.AddOrUpdate(type, bridge, (key, value) => value); } else { SupportTypes[type] = bridge; } }
public GenericBridge() { this._Bridge = ContainerBridgeRepository.Get <T>(); }