Esempio n. 1
0
 internal void RegisterTerminalTypes(List <Type> terminalTypes)
 {
     terminalTypes.OrderBy(t => t.RESTarTypeName()).ForEach(type =>
     {
         var resource = (IResource)BuildTerminalMethod.MakeGenericMethod(type).Invoke(this, null);
         RESTarConfig.AddResource(resource);
     });
     Shell.TerminalResource = Meta.TerminalResource <Shell> .Get;
 }
 public void RegisterTerminalTypes(List <Type> terminalTypes)
 {
     foreach (var type in terminalTypes.OrderBy(t => t.GetRESTableTypeName()))
     {
         var resource = (IResource)BuildTerminalMethod.MakeGenericMethod(type).Invoke(this, null);
         ResourceCollection.AddResource(resource);
     }
     Shell.TerminalResource = ResourceCollection.GetTerminalResource <Shell>();
 }