7 references to IsResource
Aspire.Hosting.Native.CodeGeneration (7)
NativeProviderProjection.cs (7)
35var resources = assembly.GetTypes().Where(IsResource).ToArray(); 184bool IsHandle(Type type) => IsResource(type) || coreTypes.ContainsKey(type.Name) && type.Namespace == "Aspire.Hosting.Native.Client"; 185string TypeId(Type type) => IsResource(type) ? packageName + "/" + type.FullName : 189string ClientType(Type type) => IsResource(type) ? type.Name + "Client" : "global::" + type.FullName; 191IsResource(type) ? $"context.ReadResource<global::{type.FullName}>({expression})" : 200IsResource(type) && provider ? $"context.PublishResource({expression}, {Quote(TypeId(type))})" : 221(parent.FullName == "Aspire.Hosting.Native.Client.NativeIntegrationResource" || IsResource(parent));