Free cookie consent management tool by TermsFeed Policy Generator

source: branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment/Update.cs @ 2771

Last change on this file since 2771 was 2771, checked in by gkronber, 14 years ago

Implemented and tested rudimentary WCF service interface on top of the Linq2Sql data access layer. #860

File size: 917 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Runtime.Serialization;
5using System.ServiceModel;
6using System.Text;
7using HeuristicLab.Services.Deployment.DataAccess;
8
9namespace HeuristicLab.Services.Deployment {
10  // NOTE: If you change the class name "Update" here, you must also update the reference to "Update" in App.config.
11  public class Update : IUpdate {
12    #region IUpdate Members
13
14    public byte[] GetPlugin(PluginDescription description) {
15      PluginStore store = new PluginStore();
16      return store.PluginFile(description);
17    }
18
19
20    public IEnumerable<ProductDescription> GetProducts() {
21      PluginStore store = new PluginStore();
22      return store.Products;
23    }
24
25    public IEnumerable<PluginDescription> GetPlugins() {
26      PluginStore store = new PluginStore();
27      return store.Plugins;
28    }
29
30    #endregion
31  }
32}
Note: See TracBrowser for help on using the repository browser.