Example #1
0
        public MicrotypeRegistry RegisterRuntimeMicrotype <T>(string category, string identifier)
            where T : IRuntimeMicrotype
        {
            var descriptor = new RuntimeMicrotypeDescriptor <T>(category, identifier);

            return(RegisterRuntimeMicrotype(descriptor));
        }
Example #2
0
 public SupportsRuntimeMicrotypeAttribute(RuntimeMicrotypeDescriptor descriptor)
 {
     this.Descriptor = descriptor;
 }
Example #3
0
 public MicrotypeRegistry RegisterRuntimeMicrotype(RuntimeMicrotypeDescriptor descriptor)
 {
     _runtime.Add(descriptor);
     return(this);
 }