Binding a service to an application