/// <summary> /// Initialize the Service and request the Manifest /// </summary> /// <returns>Async Task</returns> public async Task Initialize() { this._client = new Client(_baseUrl, _secret); this._commonCongetherFile = await FileHandler.ReadCommonCongetherFile(); this._appCongetherFile = await FileHandler.ReadAppCongetherFile(); await GetManifest(); }
internal async Task SetCongetherFile(CongetherFile congetherFile, string appId = null) { var dir = CongetherCommonDir.FullName; if (appId != null) { dir = CongetherAppDir.FullName; } var filePath = Path.Combine(dir, ".congether"); await WriteToFile <CongetherFile>(congetherFile, filePath); }
internal async Task SetCommonCongetherFile(CongetherFile file) { await SetCongetherFile(file); }
internal async Task SetAppCongetherFile(CongetherFile file) { await SetCongetherFile(file, this.client._appIdentifier); }