Update ScheduledTask.cs

In order to support TaskSchedulerPersistency other then to InMemoery there is a need for the ScheduledTask to be serialazable for binary formatter to be able to persist it to storage other then the build in InMemory storage