public RuntimePackage(string name, IFolder buildFolder, IFolder deploymentFolder, AssemblyCatalog catalog, RuntimeRegionKey regionKey) { Name = name; BuildFolder = buildFolder; DeploymentFolder = deploymentFolder; Catalog = catalog; RegionKey = regionKey; Assembly = catalog.Assembly; Durable = new RuntimeTypeSet <DurableType>(); Areas = new RuntimeTypeSet <AreaType>(); Events = new RuntimeTypeSet <EventType>(); Flows = new RuntimeTypeSet <FlowType>(); Topics = new RuntimeTypeSet <TopicType>(); Queries = new RuntimeTypeSet <QueryType>(); Views = new RuntimeTypeSet <ViewType>(); Requests = new RuntimeTypeSet <RequestType>(); WebApis = new RuntimeTypeSet <WebApiType>(); }
internal RuntimeRegion GetRegion(Type declaredType, bool strict) { var key = _cache.GetOrAdd(declaredType.Assembly, _ => RuntimeRegionKey.From(declaredType.Assembly, strict: false)); return(key == null ? null : _regions.Get(key, strict)); }
public RuntimePackageAttribute(string region) { Region = RuntimeRegionKey.From(region); }
public RuntimeRegion(RuntimeRegionKey key, RuntimePackageSet packages) { Key = key; Packages = packages; }
public static RuntimeTypeKey From(RuntimeRegionKey region, string name) { return(new RuntimeTypeKey(region, name)); }
public static RuntimeTypeKey From(string region, string name, bool strict = true) { var regionValue = RuntimeRegionKey.From(region, strict); return(regionValue == null ? null : new RuntimeTypeKey(regionValue, name)); }
private RuntimeTypeKey(RuntimeRegionKey region, string name) { Region = region; Name = name; }