private ServiceModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, AbstractMixinsModel mixinsModel, AbstractStateModel stateModel, CompositeMethodsModel compositeMethodsModel, string moduleName, string identity, bool instantiateOnStartup) : base(compositeType, visibility, metaInfo, mixinsModel, stateModel, compositeMethodsModel) { this.moduleName = moduleName; this.identity = identity; this.instantiateOnStartup = instantiateOnStartup; }
public static TransientModel NewModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, PropertyDeclarations propertyDeclarations, IEnumerable <Type> assemblyConcerns, IEnumerable <Type> sideEffects, IList <Type> mixins) { var constraintsModel = new ConstraintsModel(compositeType); bool immutable = metaInfo.Get <ImmutableAttribute>() != null; var propertiesModel = new TransientPropertiesModel(constraintsModel, propertyDeclarations, immutable); var stateModel = new TransientStateModel(propertiesModel); var mixinsModel = new MixinsModel(compositeType, mixins); var concerns = new List <ConcernDeclaration>(); ConcernsDeclaration.ConcernDeclarations(assemblyConcerns, concerns); ConcernsDeclaration.ConcernDeclarations(compositeType, concerns); var concernsModel = new ConcernsDeclaration(concerns); var sideEffectsModel = new SideEffectsDeclaration(compositeType, sideEffects); var compositeMethodsModel = new CompositeMethodsModel(compositeType, constraintsModel, concernsModel, sideEffectsModel, mixinsModel); stateModel.AddStateFor(compositeMethodsModel.Properties, compositeType); return(new TransientModel(compositeType, visibility, metaInfo, mixinsModel, stateModel, compositeMethodsModel)); }
public static ServiceModel NewModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, IEnumerable<Type> assemblyConcerns, IEnumerable<Type> sideEffects, IList<Type> mixins, String moduleName, String identity, bool instantiateOnStartup) { PropertyDeclarations propertyDeclarations = new MetaInfoDeclaration(); var constraintsModel = new ConstraintsModel(compositeType); bool immutable = metaInfo.Get<ImmutableAttribute>() != null; var propertiesModel = new ServicePropertiesModel(constraintsModel, propertyDeclarations, immutable); var stateModel = new ServiceStateModel(propertiesModel); var mixinsModel = new MixinsModel(compositeType, mixins); var concerns = new List<ConcernDeclaration>(); ConcernsDeclaration.ConcernDeclarations(assemblyConcerns, concerns); ConcernsDeclaration.ConcernDeclarations(compositeType, concerns); var concernsModel = new ConcernsDeclaration(concerns); var sideEffectsModel = new SideEffectsDeclaration(compositeType, sideEffects); var compositeMethodsModel = new CompositeMethodsModel(compositeType, constraintsModel, concernsModel, sideEffectsModel, mixinsModel); stateModel.AddStateFor(compositeMethodsModel.Properties, compositeType); return new ServiceModel( compositeType, visibility, metaInfo, mixinsModel, stateModel, compositeMethodsModel, moduleName, identity, instantiateOnStartup); }
public static ServiceModel NewModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, IEnumerable <Type> assemblyConcerns, IEnumerable <Type> sideEffects, IList <Type> mixins, String moduleName, String identity, bool instantiateOnStartup) { PropertyDeclarations propertyDeclarations = new MetaInfoDeclaration(); var constraintsModel = new ConstraintsModel(compositeType); bool immutable = metaInfo.Get <ImmutableAttribute>() != null; var propertiesModel = new ServicePropertiesModel(constraintsModel, propertyDeclarations, immutable); var stateModel = new ServiceStateModel(propertiesModel); var mixinsModel = new MixinsModel(compositeType, mixins); var concerns = new List <ConcernDeclaration>(); ConcernsDeclaration.ConcernDeclarations(assemblyConcerns, concerns); ConcernsDeclaration.ConcernDeclarations(compositeType, concerns); var concernsModel = new ConcernsDeclaration(concerns); var sideEffectsModel = new SideEffectsDeclaration(compositeType, sideEffects); var compositeMethodsModel = new CompositeMethodsModel(compositeType, constraintsModel, concernsModel, sideEffectsModel, mixinsModel); stateModel.AddStateFor(compositeMethodsModel.Properties, compositeType); return(new ServiceModel( compositeType, visibility, metaInfo, mixinsModel, stateModel, compositeMethodsModel, moduleName, identity, instantiateOnStartup)); }
protected AbstractCompositeModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, AbstractMixinsModel mixinsModel, AbstractStateModel stateModel, CompositeMethodsModel compositeMethodsModel) { this.compositeType = compositeType; this.visibility = visibility; this.metaInfo = metaInfo; this.stateModel = stateModel; // Create proxy class this.proxyType = CreateProxyType(compositeType); this.mixinsModel = mixinsModel; this.compositeMethodsModel = compositeMethodsModel; }
protected AbstractCompositeModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, AbstractMixinsModel mixinsModel, AbstractStateModel stateModel, CompositeMethodsModel compositeMethodsModel) { this.compositeType = compositeType; this.visibility = visibility; this.metaInfo = metaInfo; this.stateModel = stateModel; // Create proxy class this.proxyType = CreateProxyType(compositeType); this.mixinsModel = mixinsModel; this.compositeMethodsModel = compositeMethodsModel; }
public static ValueModel NewModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, PropertyDeclarations propertyDeclarations, List<Type> assemblyConcerns, List<Type> sideEffects, List<Type> mixins) { var constraintsModel = new ConstraintsModel(compositeType); bool immutable = metaInfo.Get<ImmutableAttribute>() != null; var propertiesModel = new ValuePropertiesModel(constraintsModel, propertyDeclarations, immutable); var stateModel = new ValueStateModel(propertiesModel); var mixinsModel = new MixinsModel(compositeType, mixins); var concerns = new List<ConcernDeclaration>(); ConcernsDeclaration.ConcernDeclarations(assemblyConcerns, concerns); ConcernsDeclaration.ConcernDeclarations(compositeType, concerns); var concernsModel = new ConcernsDeclaration(concerns); var sideEffectsModel = new SideEffectsDeclaration(compositeType, sideEffects); var compositeMethodsModel = new CompositeMethodsModel(compositeType, constraintsModel, concernsModel, sideEffectsModel, mixinsModel); stateModel.AddStateFor(compositeMethodsModel.Properties, compositeType); return new ValueModel(compositeType, visibility, metaInfo, mixinsModel, stateModel, compositeMethodsModel); }
private ValueModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, AbstractMixinsModel mixinsModel, AbstractStateModel stateModel, CompositeMethodsModel compositeMethodsModel) : base(compositeType, visibility, metaInfo, mixinsModel, stateModel, compositeMethodsModel) { }
public EntityModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, AbstractMixinsModel mixinsModel, AbstractStateModel stateModel, CompositeMethodsModel compositeMethodsModel) : base(compositeType, visibility, metaInfo, mixinsModel, stateModel, compositeMethodsModel) { }
private ServiceModel(Type compositeType, Visibility visibility, MetaInfo metaInfo, AbstractMixinsModel mixinsModel, AbstractStateModel stateModel, CompositeMethodsModel compositeMethodsModel, string moduleName, string identity, bool instantiateOnStartup) : base(compositeType, visibility, metaInfo, mixinsModel, stateModel, compositeMethodsModel) { this.moduleName = moduleName; this.identity = identity; this.instantiateOnStartup = instantiateOnStartup; }