Пример #1
0
 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>();
 }
Пример #2
0
            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));
            }
Пример #3
0
 public RuntimePackageAttribute(string region)
 {
     Region = RuntimeRegionKey.From(region);
 }
Пример #4
0
 public RuntimeRegion(RuntimeRegionKey key, RuntimePackageSet packages)
 {
     Key      = key;
     Packages = packages;
 }
Пример #5
0
 public static RuntimeTypeKey From(RuntimeRegionKey region, string name)
 {
     return(new RuntimeTypeKey(region, name));
 }
Пример #6
0
        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));
        }
Пример #7
0
 private RuntimeTypeKey(RuntimeRegionKey region, string name)
 {
     Region = region;
     Name   = name;
 }