Home SmartChannels Advanced scenarios: callbacks and authorization. - Service interface definition.

Login Form



Advanced scenarios: callbacks and authorization.
Advanced scenarios: callbacks and authorization. - Service interface definition. PDF Print E-mail
Article Index
Advanced scenarios: callbacks and authorization.
Callback interface definition.
Service interface definition.
Service implemetation.
Defining service configuration.
Client implementation.
Defining client configuration.
Enabling authorization.

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


 

Copyright © 2010 SmartSoftwareBits.com. All Rights Reserved.