Free cookie consent management tool by TermsFeed Policy Generator

source: branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment/Admin.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: 760 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 "Admin" here, you must also update the reference to "Admin" in App.config.
11  public class Admin : IAdmin {
12    #region IAdmin Members
13
14    public void DeployProduct(ProductDescription product) {
15      var store = new PluginStore();
16      store.Persist(product);
17    }
18
19    public void DeployPlugin(PluginDescription plugin, byte[] zipFile) {
20      var store = new PluginStore();
21      store.Persist(plugin, zipFile);
22    }
23
24    #endregion
25  }
26}
Note: See TracBrowser for help on using the repository browser.