static void Main(string[] args) { CreateJSON cj = new CreateJSON(); KeyStorage ks = new KeyStorage(); ks.GetKeysUser(); ks.GetKeysMachine(); }
//Ova metoda je jedina public i nju trebamo pozvati u Program.cs iz main-a public void PostJsonAndKeepAplive() { TimeSpan startTimeSpan = TimeSpan.Zero; TimeSpan periodTimeSpan = TimeSpan.FromMilliseconds(miliSec); Timer timer = new System.Threading.Timer((e) => { PostJson(uri, CreateJSON.getJSON()); }, null, startTimeSpan, periodTimeSpan); }
public override Task <object> FulfillAsync() { Dictionary <string, string> MyEntities = new Dictionary <string, string>(); MyEntities.Add("VM_Name", this.VM_Name); MyEntities.Add("snapshot_Name", this.snapshot_Name); CreateJSON createJSON = new CreateJSON(); createJSON.AECall(MyEntities, "Creating Snapshot"); return(Task.FromResult((object)$"I will take a snapshot named {this.snapshot_Name} as soon as possible... Visit me again whenever you need my help. Have a great day :)")); }
void Start() { createJSON = gameObject.AddComponent <CreateJSON>(); bundleDownloader = gameObject.AddComponent <AssetBundlesDownloader>(); reConnTimes = 0; }
public void PostJsonAndKeepAliveForService() { PostJson(uri, CreateJSON.getJSON()); }