Skip to content

Instantly share code, notes, and snippets.

@merken
Created January 6, 2020 13:50
Show Gist options
  • Save merken/388695e07a8e80a423ed21ddef2fa128 to your computer and use it in GitHub Desktop.
Save merken/388695e07a8e80a423ed21ddef2fa128 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Contract
{
/// <summary>
/// OldSQLPlugin only implements All() and Get(int productId).
/// SQLPlugin and TableStoragePlugin implement the contract described below.
///
/// Although OldSQLPlugin implements and older version of the Contract.dll assembly, it can still be loaded and invoked by Prise via the PriseProxy!
/// </summary>
public interface IProductsRepository
{
Task<IEnumerable<Product>> All();
Task<Product> Get(int productId);
Task<Product> Create(Product product);
Task<Product> Update(Product product);
Task Delete(int productId);
Task<IEnumerable<Product>> Search(string term);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment