Esempio n. 1
0
 public static DomainAction Register(string name, Type ownerType, ActionMetadata defaultMetadata)
 {
     return(new DomainAction()
     {
         Id = Guid.NewGuid(),
         Name = name,
         OwnerType = ownerType,
         DefaultMetadata = defaultMetadata
     });
 }
Esempio n. 2
0
 public static DomainAction Register <OT>(string name, ActionMetadata defaultMetadata)
 {
     return(Register(name, typeof(OT), defaultMetadata));
 }