示例#1
0
 public OntologyAddedEvent(IAcSession acSession, OntologyBase source, IOntologyCreateIo output)
     : base(acSession, source)
 {
     if (output == null)
     {
         throw new System.ArgumentNullException("output");
     }
     this.Output = output;
 }
示例#2
0
 public OntologyAddedEvent(IAcSession acSession, OntologyBase source, IOntologyCreateIo output)
     : base(acSession, source)
 {
     if (output == null)
     {
         throw new System.ArgumentNullException("output");
     }
     this.Output = output;
 }
示例#3
0
 public static Ontology Create(IOntologyCreateIo input)
 {
     Debug.Assert(input.Id != null, "input.Id != null");
     return new Ontology
     {
         Id = input.Id.Value,
         CanAction = false,
         CanCommand = false,
         CanEvent = false,
         Code = input.Code,
         Name = input.Name,
         DeletionStateCode = 0,
         Description = input.Description,
         EditHeight = input.EditHeight,
         EditWidth = input.EditWidth,
         DispatcherLoadCount = 100,
         DispatcherSleepTimeSpan = 10000,
         EntityDatabaseId = input.EntityDatabaseId,
         EntityProviderId = input.EntityProviderId,
         EntitySchemaName = input.EntitySchemaName,
         EntityTableName = input.EntityTableName,
         Icon = input.Icon,
         ExecutorLoadCount = 100,
         IsEnabled = input.IsEnabled,
         ExecutorSleepTimeSpan = 10000,
         IsLogicalDeletionEntity = false,
         IsCataloguedEntity = false,
         IsSystem = false,
         MessageDatabaseId = input.MessageDatabaseId,
         MessageProviderId = input.MessageProviderId,
         MessageSchemaName = input.MessageSchemaName,
         ReceivedMessageBufferSize = 1000,
         ServiceIsAlive = false,
         SortCode = input.SortCode,
         Triggers = string.Empty
     };
 }
示例#4
0
文件: Ontology.cs 项目: zszqwe/anycmd
 public static Ontology Create(IOntologyCreateIo input)
 {
     Debug.Assert(input.Id != null, "input.Id != null");
     return(new Ontology
     {
         Id = input.Id.Value,
         CanAction = false,
         CanCommand = false,
         CanEvent = false,
         Code = input.Code,
         Name = input.Name,
         DeletionStateCode = 0,
         Description = input.Description,
         EditHeight = input.EditHeight,
         EditWidth = input.EditWidth,
         DispatcherLoadCount = 100,
         DispatcherSleepTimeSpan = 10000,
         EntityDatabaseId = input.EntityDatabaseId,
         EntityProviderId = input.EntityProviderId,
         EntitySchemaName = input.EntitySchemaName,
         EntityTableName = input.EntityTableName,
         Icon = input.Icon,
         ExecutorLoadCount = 100,
         IsEnabled = input.IsEnabled,
         ExecutorSleepTimeSpan = 10000,
         IsLogicalDeletionEntity = false,
         IsCataloguedEntity = false,
         IsSystem = false,
         MessageDatabaseId = input.MessageDatabaseId,
         MessageProviderId = input.MessageProviderId,
         MessageSchemaName = input.MessageSchemaName,
         ReceivedMessageBufferSize = 1000,
         ServiceIsAlive = false,
         SortCode = input.SortCode,
         Triggers = string.Empty
     });
 }
示例#5
0
 internal OntologyAddedEvent(IAcSession acSession, OntologyBase source, IOntologyCreateIo input, bool isPrivate)
     : this(acSession, source, input)
 {
     this.IsPrivate = isPrivate;
 }
示例#6
0
 internal OntologyAddedEvent(IAcSession acSession, OntologyBase source, IOntologyCreateIo input, bool isPrivate)
     : this(acSession, source, input)
 {
     this.IsPrivate = isPrivate;
 }
示例#7
0
 public static void AddOntology(this IAcDomain acDomain, IAcSession acSession, IOntologyCreateIo input)
 {
     acDomain.Handle(new AddOntologyCommand(acSession, input));
 }
示例#8
0
 public static void AddOntology(this IAcDomain acDomain, IAcSession acSession, IOntologyCreateIo input)
 {
     acDomain.Handle(new AddOntologyCommand(acSession, input));
 }