Exemplo n.º 1
0
 public ModuleConfig(SourceFile source, ResourceMetadata metadata, ResourceHelpInfo info, ModuleConfigSpec spec)
 {
     Info   = info;
     Source = source;
     Spec   = spec;
     Name   = metadata.Name;
 }
Exemplo n.º 2
0
 public Baseline(SourceFile source, ResourceMetadata metadata, ResourceHelpInfo info, BaselineSpec spec)
 {
     Info   = info;
     Source = source;
     Spec   = spec;
     Name   = BaselineId = metadata.Name;
 }
Exemplo n.º 3
0
        public IResource CreateInstance(SourceFile source, ResourceMetadata metadata, CommentMetadata comment, object spec)
        {
            var info = new ResourceHelpInfo(comment.Synopsis);

            return((IResource)Activator.CreateInstance(typeof(T), source, metadata, info, spec));
        }