Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
I’m writing a program which is based on plugin, generally we have a database which has customer list like name and etc plugin written for this project is supposed to calculate the incoming data (information) , assume that there are 4 individuals which are going to write 4 plugins for this program , for instance one obtains the number of customers and the second plugin calculates the debts and etc The thing is how can I enter the customer list in the interface input in a way that ones who write plugins won’t get involved in database and have the information from the interface input and do their job subsequently

C#
namespace PluginBasdeApp.PluginDefenition{
public interface IPlugin
{
     string Name { get;  }


    List<IAction> Actions { get; }


}
}


C#
namespace PluginBasdeApp.PluginDefenition{
public interface IAction
{
    string Name { get; }

    List<Customer> Run(List<Customer> customers );
}
}
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900