|
Advanced scenarios: callbacks and authorization. - Service interface definition. |
|
|
|
|
Page 3 of 8
Service interface definition.
In order clients to be able to call the service functions without having service assembly (we do not want clients to have service code ont heir machines, right?) they need to know service interface. To inform them let's create service interface definition. We could create additional assembly (dll) to do so, but this interface definition will be used together with IProgressSubscriber interface, so we better put it inside IProgressObserver assembly.
- Put this code into Class1.vb of IProgressObserver project:
Public Interface IMyService
Sub DoJob(ByVal progressCallback As IProgressSubscriber)
End Interface
This will define service interface named IMyService with one procedure - DoJob that will accept callback information and perform the work.
- Save the project and recompile the library. You should get updated IProgressObserver.dll file
|