Exemplo n.º 1
0
        /// <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();
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 internal async Task SetCommonCongetherFile(CongetherFile file)
 {
     await SetCongetherFile(file);
 }
Exemplo n.º 4
0
 internal async Task SetAppCongetherFile(CongetherFile file)
 {
     await SetCongetherFile(file, this.client._appIdentifier);
 }