Monthly licensing

Hello Friends, I need to know If is possible to create a licensing way where: every month the license expires and the customer need to renew with me to use the application?

And If is possible to do this renew process online?

If one or all situations are possible, someone could please send me an example in C#?

Thanks!