コード例 #1
0
        public async void Get_Client_Scripts_Async_Test()
        {
            var clientKey = new Guid("C55C99A5-E0CF-4023-AD29-BE262C9B2939");
            IAsyncRepository <ClientScript> clientScriptsRepo = new ClientScriptsAsyncRepostiory(_iAgentDevDb);
            var clientScriptRecords = await clientScriptsRepo.FindWithGuidAsync(clientKey);

            foreach (var item in clientScriptRecords)
            {
                Console.WriteLine(item.ToString());
            }
        }
コード例 #2
0
        public async Task <IEnumerable <ClientScript> > GetClientScripts_With_ClientKey(Guid clientKey)
        {
            IAsyncRepository <ClientScript> clientScriptsRepo = new ClientScriptsAsyncRepostiory(_db);

            try
            {
                return(await clientScriptsRepo.FindWithGuidAsync(clientKey));
            }
            catch (Exception)
            {
                throw;
            }
        }