ServiceKeyAttribute public class ServiceKeyAttribute : Attribute ServiceKeyAttribute can be specified on a parameter to inject the key that was used for registration/resolution. Documentation Code public ServiceKeyAttribute()