public void SetHandler <THandler>() { _mappings.GetOrAdd(typeof(T), () => TypeFactory.ActivatorFactory(typeof(THandler))); }
public void SetHandler <THandler>() { _mappings.AddOrUpdate(typeof(T), () => TypeFactory.ActivatorFactory(typeof(THandler)), (_, __) => () => TypeFactory.ActivatorFactory(typeof(THandler))); }