Пример #1
0
        protected override void PostProcessModel(CompositeModelMutable model, CompositeAssemblyInfo info, String architectureContainerID)
        {
            ServiceCompositeAssemblyInfo sInfo  = (ServiceCompositeAssemblyInfo)info;
            ServiceCompositeModelMutable sModel = (ServiceCompositeModelMutable)model;

            sModel.ServiceID = sInfo.ServiceID ?? ("[" + architectureContainerID + String.Join(", ", model.IQ.PublicTypes.Select(pType => QualifiedName.GetTypeName(pType))) + "]");
            sModel.ActivateWithApplication = sInfo.ActivateWithApplication;
        }
Пример #2
0
 protected override void CreateCompositeModelObjects(CompositeAssemblyInfo info, CollectionsFactory factory, out CompositeModelState state, out CompositeModelImmutable resultImmutable, out CompositeModelMutable result)
 {
     state           = new ServiceCompositeModelState(factory);
     resultImmutable = new ServiceCompositeModelImmutable((ServiceCompositeModelState)state);
     result          = new ServiceCompositeModelMutable((ServiceCompositeModelState)state, (ServiceCompositeModel)resultImmutable);
 }