public static void Main()
var a=Newtonsoft.Json.JsonConvert.DeserializeObject<HostedModuleInfo>("{\"AssemblyPath\":\"12\", \"Priority\":1,\"StartupDelay\":0, \"Type\":2}");
public class HostedModuleInfo
public string AssemblyPath { get; set; }
public int Priority { get; set; }
public int StartupDelay { get; set; }
public HostedModuleType Type { get; set; }
public enum HostedModuleType