private static Architecture GetArchitectureFrom(string namespc) { Architecture architecture = new ArchLoader().LoadNamespacesWithinAssembly(typeof(IndependentClass).Assembly, "TestAssembly.Diagram." + namespc).Build(); if (architecture.Classes.Count() == 0) { throw new InvalidOperationException( string.Format("No classes were imported from '{0}'", namespc)); } return(architecture); }
private void Awake() {//Changes: destroy 부분 추가 if (instance == null) { instance = this; DontDestroyOnLoad(this.gameObject); } else if (instance != this) { UnityEngine.Debug.LogWarning("SingleTone Error : " + this.name); Destroy(gameObject); } }
public ArchitectureSpecSetup() { Architecture = new ArchLoader() .LoadAssemblyIncludingDependencies(typeof(TStartup).Assembly) .Build(); InfrastructureLayer = ArchRuleDefinition.Types().That() .ResideInNamespace(DomainSpecificApiProjectNamespaces, true) .Or().ResideInNamespace(ApiCommonProjectNamespaces, true) .Or().ResideInNamespace(DomainSpecificStorageProjectNamespaces, true) .Or().ResideInNamespace(StorageCommonProjectNamespaces, true) .Or().ResideInNamespace(InfrastructureCommonProjectsNamespaces, true) .Or().ResideInNamespace(ExternalCommonProjectsNamespaces, true) .As("Infrastructure Layer"); ApplicationLayer = ArchRuleDefinition.Types().That() .ResideInNamespace(DomainSpecificApplicationProjectNamespaces, true) .Or().ResideInNamespace(ApplicationCommonProjectNamespaces, true) .As("Application Layer"); DomainLayer = ArchRuleDefinition.Types().That() .ResideInNamespace(DomainSpecificProjectNamespaces, true) .Or().ResideInNamespace(DomainCommonProjectNamespaces, true) .As("Domain Layer"); }