public TService GetService <TService>() where TService : class { Type serviceInterface = typeof(TService); Guid interfaceGuid; if (!AttributeUtilities.TryGetInterfaceGuid(serviceInterface, out interfaceGuid)) { throw new ArgumentException($"Service Interface {serviceInterface.FullName} does not expose Guid Attribute!"); } else { return(GetService <TService>(interfaceGuid)); } }