I have a base client application that configures a WCF host and starts a running process of a third party application which I monitor for changes.
I have two different requirements [Applications - one is a data recorder - recorder particular data, the other is a visual representation of the process]
I am trying to use a base Client for each Recorder, ProcessView [Each will have two way communication to a Winform Application [Multiple Instances], I would like to know if this is a good practice and where I should put the callbackcontract decoration service decoration as Callbacks are different for each application (is is possible to subscribe to only some callbacks and ignore others etc..
Here is a basic layout , I am unsure how to decorate for service contract and callback contracts. and a little on the implementation as well.
If my Service BehaviourAttribute is on the Interface will that be inherited and can I skip that and put the behavior on the class that inherits or have a different behavior on the class that inherits ?
[ServiceContract ?? CallBackContract ??] {IAM UNSURE OF THIS .. ]
IBaseClient
{
}
[ServiceContract ?? CallBackContract ??] {IAM UNSURE OF THIS .. ]
BaseClient : IBaseClient
{
.. Data For App
.. I monitor data and create events for Recorder, and ProcessView
}
[ServiceContract , CallBackContract(Recorder)]
IRecorder
{
.. stuff
}
Recorder : BaseClient
{
...Has different callback methods
.. Save();
}
[ServiceContract , CallBackContract(ProcessView)]
IProcessView
{
.. stuff here.
}
ProcessView : BaseClient
{
...Has different callback methods
.. Event PushData();
}
WinFormApp
{
.. SaveConfigurationToDB();
.. ViewDB();
.. ReceivePushed();
}