My Tokens Support

Is MyTokens supported?
Yes, MyTokens is supported in SharpScheduler, but please note that since SharpScheduler runs on the Host not per Portal it will only have access to tokens that are in namespaces that are available on all Portals.
Note that by default token namespaces are not available on all portals and neither can you set a namespace to available on all portals after it has been created.
- create a new namespace available on all portals
- move you token into that namespace (or clone the token and move the clone instead)

How are tokens affected by Context (Portal and User) ?
All tokens that use Context(Portal or User) do not work by default because MyTokens will not have access to either the context or the user.

Can I use portal settings or user settings inside a razorscript?
Yes, but you must create the portal settings. (using a hardcoded value or a value from the tokens parameters)

@using System.IO;
string someText = "someText";
DotNetNuke.Entities.Portals.PortalSettings myPortal = new DotNetNuke.Entities.Portals.PortalSettings(1);
string result = myPortal.PortalId.ToString();