Bharani,
I'd like to throw in a "Me, too!" here. I'm using the .NET library. When using the provider OAuth2ProviderForApplications, the default value for IsOffline is "true" so that suggests that it's already set to offline. The examples in your link were not related to the .NET libraries, so I'm unsure if there's another way to validate this.
Is there an extra step required to get this to work properly?