I have a really simple web app with has some basic user interactions and a background process.

At the minute I set up a timer on application start and use a background working all within the web app.

This works, but obviously has limitations.

Because the project is very simple and I don;t want to over complicate the structure as an interim step I would like to do is make the same asp.net dll capable of running as a service. i.e. the dll from the asp.net web app

Can I just add the standard constructs (eg below) and this will work or do I need to do something more?

Code:
Public Class Service1

    Protected Overrides Sub OnStart(ByVal args() As String)
        ' Add code here to start your service. This method should set things
        ' in motion so your service can do its work.
    End Sub

    Protected Overrides Sub OnStop()
        ' Add code here to perform any tear-down necessary to stop your service.
    End Sub

End Class