﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - How to  obtain the local storage and activator service?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-obtain-the-local-storage-and-activator-service/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to  obtain the local storage and activator service?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-obtain-the-local-storage-and-activator-service/</link><pubDate>Mon, 29 Dec 2014 18:04:55 GMT</pubDate><dc:creator>technical@intersoftpt.com</dc:creator><category>Sqlite</category><description>&lt;p&gt;Hello Misery,&lt;/p&gt;&lt;p&gt;Make sure you have installed the required Nuget packages, specifically the Microsoft BCL package. To install the package, right click on the Portable project, Manage Nuget Packages. Then look for Microsoft BCL package and install it to your project.&lt;/p&gt;&lt;p&gt;FYI, if you created a new project from Business Template, the Crosslight Project Wizard is already doing the BCL installation automatically. But in case you created a new project from other Crosslight template, then you have to install the BCL package manually to leverage the async/await feature in the Portable project.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>How to  obtain the local storage and activator service?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-obtain-the-local-storage-and-activator-service/</link><pubDate>Wed, 24 Dec 2014 08:30:37 GMT</pubDate><dc:creator>MiseryChen</dc:creator><category>Sqlite</category><description>&lt;p&gt;&amp;nbsp;Hi &amp;nbsp;support:&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(102, 102, 102); font-family: Tahoma, Arial; font-size: 12px; line-height: 24px; text-align: justify; background-color: rgba(255, 255, 255, 0.8);"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I &amp;nbsp; &amp;nbsp;tried your instance, can run normally, but when I create a new project, and refer to the same DLL,&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: rgba(255, 255, 255, 0.8); color: rgb(102, 102, 102); font-family: Tahoma, Arial; font-size: 12px; line-height: 24px; text-align: justify;"&gt;Appear the same mistake again. &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color: rgba(255, 255, 255, 0.8); color: rgb(102, 102, 102); font-family: Tahoma, Arial; font-size: 12px; line-height: 24px; text-align: justify;"&gt;&amp;nbsp; my codes:&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;public SimpleViewModel()&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.ShowToastCommand = new DelegateCommand(ShowToast);&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private async void ShowToast(object parameter)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string baseUrl = "http://www.google.com";&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IRestClient client = new RestClient();&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; client.BaseUrl = baseUrl;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IRestRequest request = new RestRequest(HttpMethod.GET);&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IRestResponse &lt;/font&gt;response&lt;/span&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;= await client.ExecuteAsync(request);&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string mydata =&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;response&lt;/span&gt;&lt;span style="font-size: 12px; line-height: 24px; color: rgb(102, 102, 102); font-family: Tahoma, Arial;"&gt;.Content;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="background-color: rgba(255, 255, 255, 0.8); text-align: justify; font-size: 12px; line-height: 24px;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="text-align: justify; "&gt;&lt;font color="#666666" face="Tahoma, Arial"&gt;&lt;span style="font-size: 12px; line-height: 24px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color: rgba(255, 255, 255, 0.8); color: rgb(102, 102, 102); font-family: Tahoma, Arial; font-size: 12px; line-height: 24px; text-align: justify;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color: rgba(255, 255, 255, 0.8); color: rgb(102, 102, 102); font-family: Tahoma, Arial; font-size: 12px; line-height: 24px; text-align: justify;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item><item><title>How to  obtain the local storage and activator service?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-obtain-the-local-storage-and-activator-service/</link><pubDate>Tue, 23 Dec 2014 17:28:15 GMT</pubDate><dc:creator>technical@intersoftpt.com</dc:creator><category>Sqlite</category><description>&lt;p&gt;Hi Misery,&lt;/p&gt;&lt;p&gt;Please make sure that your method is already marked with "async" keyword.&lt;/p&gt;&lt;p&gt;For your reference, please check out our&amp;nbsp;&lt;a href="http://git.intersoftpt.com/projects/CROS/repos/samples/browse/SyncSample" target="_blank"&gt;Sync Sample&lt;/a&gt;&amp;nbsp;which demonstrate the use of Crosslight SQLite, local data storage, and data synchronization. The sample is already built with data repository pattern which greatly simplify the business logic implementation.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>How to  obtain the local storage and activator service?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-obtain-the-local-storage-and-activator-service/</link><pubDate>Tue, 23 Dec 2014 07:42:05 GMT</pubDate><dc:creator>MiseryChen</dc:creator><category>Sqlite</category><description>&lt;p&gt;Hi :&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Now ,the &amp;nbsp;keyword works well. &amp;nbsp;But when I build my project , &amp;nbsp;new problem comes:&lt;/p&gt;&lt;p&gt;Also about that &amp;nbsp;:&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; IRestResponse response = await client.ExecuteAsync(request);&lt;/p&gt;&lt;p&gt;error&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;13&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;can't wait “System.Threading.Tasks.Task&amp;lt;Intersoft.Crosslight.RestClient.IRestResponse&amp;gt;”&lt;span class="Apple-tab-span" style="white-space:pre"&gt;	&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Now,what can i do ?&lt;/p&gt;</description></item><item><title>How to  obtain the local storage and activator service?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-obtain-the-local-storage-and-activator-service/</link><pubDate>Tue, 23 Dec 2014 06:58:51 GMT</pubDate><dc:creator>yudi</dc:creator><category>Sqlite</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;It is a packages that enables Visual Studio 2012 (or higher) projects to use the new 'async' and 'await' keywords. For more detail, including how to install the package, please check this &lt;a href="https://www.nuget.org/packages/Microsoft.Bcl.Async" target="_blank"&gt;link&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to  obtain the local storage and activator service?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-obtain-the-local-storage-and-activator-service/</link><pubDate>Mon, 22 Dec 2014 08:39:42 GMT</pubDate><dc:creator>MiseryChen</dc:creator><category>Sqlite</category><description>&lt;p&gt;&amp;nbsp; &amp;nbsp; Hi support:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;About the question I had asked ,thanks very much,it works well now.&lt;/p&gt;&lt;p&gt;by the way, I mat a new problem. that's also about &amp;nbsp;Service Data Access.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// execute the RestRequest&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IRestResponse response = await client.ExecuteAsync(request);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The await keyword is invalid.&lt;/p&gt;&lt;p&gt;I have found the same problem&amp;nbsp;&lt;span style="font-size: 10pt;"&gt;on internet:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; http://www.intersoftpt.com/Community/Crosslight/IRestResponse-Error-in-ProgramCore/&amp;nbsp;&lt;/p&gt;&lt;p&gt;But I don't kown what the BCL Packages means ? a dll or other things?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item><item><title>How to  obtain the local storage and activator service?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-obtain-the-local-storage-and-activator-service/</link><pubDate>Fri, 19 Dec 2014 10:50:01 GMT</pubDate><dc:creator>yudi</dc:creator><category>Sqlite</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please ensure that you have added reference to Intersoft.Crosslight.Data.SQLite assembly in all projects; and add reference of Intersoft.Crosslight.Data.SQLite.[platform] (for example: add reference of Intersoft.Crosslight.Data.SQLite.Android in Android project).&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;You can also check the documentation: Configuring SQLite for Local Data Storage in &lt;a href="http://developer.intersoftpt.com/display/crosslight/Configuring+SQLite+for+Local+Data+Storage" target="_blank"&gt;here&lt;/a&gt;. It discusses things that require attention to use SQLite for local data storage in Crosslight applications.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to  obtain the local storage and activator service?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-obtain-the-local-storage-and-activator-service/</link><pubDate>Wed, 17 Dec 2014 02:39:57 GMT</pubDate><dc:creator>MiseryChen</dc:creator><category>Sqlite</category><description>&lt;p&gt;Hi support:&lt;/p&gt;&lt;p&gt;&amp;nbsp;in &amp;nbsp;project, I want to use local data . I have tried your mothed which is publiced online:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;for the following code:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;ILocalStorageService storageService = this.GetService&amp;lt;ILocalStorageService&amp;gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IActivatorService activatorService = this.GetService&amp;lt;IActivatorService&amp;gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;i&gt;&amp;nbsp;&lt;/i&gt; &amp;nbsp; &amp;nbsp; &lt;span style="text-decoration: underline;"&gt;var factory = activatorService.CreateInstance&amp;lt;System.Func&amp;lt;string, ISQLiteConnection&amp;gt;&amp;gt;()&lt;/span&gt;;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &amp;nbsp; the underlined parts is wrong in my project, error info is&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Could not resolve type: activatorService.CreateInstance&amp;lt;global::System.Func&amp;lt;string, global::Intersoft.Crosslight.Data.SQLite.ISQLiteConnection&amp;gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;How to slove this problme?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>