Hemen kode batzuk erakusten batetik ikusia dago eskuragarri FAST zerbitzaria izeneko oinarritutako QRServer (zerbitzari prozesu dugu komunikatzeko). I offer this up to give you all a taste of what it’s like to use the provided FAST API.
erabiliz Sistema; erabiliz System.Collections.Generic; erabiliz System.Linq; erabiliz System.Text; erabiliz Com.FastSearch.Esp.Search; erabiliz Com.FastSearch.Esp.Search.Http; erabiliz Com.FastSearch.Esp.Search.Navigation; erabiliz Com.FastSearch.Esp.Search.Query; erabiliz Com.FastSearch.Esp.Search.Result; erabiliz Com.FastSearch.Esp.Search.View; erabiliz System.Collections.Specialized; erabiliz System.Collections; namespace Conchango { klasean EnumerateFASTViews { estatiko gal Nagusia(katea[] argumentuak) { ISearchFactory searchFactory; NameValueCollection nameValueCollection = berria NameValueCollection(); nameValueCollection.Add("fastsearchengine", "Com.FastSearch.Esp.Search.Http.HttpSearchFactory"); nameValueCollection.Add("Com.FastSearch.Esp.Search.Http.QRServers", "fastdemoback:15100"); nameValueCollection.Add("Com.FastSearch.Esp.Search.Http.RequestMethod", "GET"); searchFactory = SearchFactory.NewInstance(nameValueCollection); Kontsolara.WriteLine("Total Views: [" + searchFactory.GetSearchViewList().Diruz + "]."); int i = 0; foreach (objektu o urtean searchFactory.GetSearchViewList()) { Kontsolara.WriteLine("View [" + i + "]: [" + o.ToString() + "]."); } Kontsolara.ReadLine(); } } }
Kontuan uste nuen neure burua bat ozta-ozta eskudunak C # programatzaile eta azal daukat, beraz, ez bidali mugurdi edozein nire bidea, batez ere, berriro: the "foreach (objektuaren eta …)" construct 🙂
</amaiera>