﻿<?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 Use Crosslight Enterprise Framework to Add Activation Process</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-Enterprise-Framework-to-Add-Activation-Process/</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 Use Crosslight Enterprise Framework to Add Activation Process</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-Enterprise-Framework-to-Add-Activation-Process/</link><pubDate>Thu, 29 Jan 2015 01:36:46 GMT</pubDate><dc:creator>yudi</dc:creator><category>Crosslight</category><description>&lt;blockquote&gt;...verify the download link, the files is no longer available...&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I have fixed the link and ensure that the link works now. Please retry to download the sample and let us hear your response.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight Enterprise Framework to Add Activation Process</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-Enterprise-Framework-to-Add-Activation-Process/</link><pubDate>Wed, 28 Jan 2015 11:48:45 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><category>Crosslight</category><description>Hi Yudi,&lt;br&gt;&lt;br&gt;As always, we appreciate your support with our concerns. But please do verify the download link, the files is no longer available.&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;&lt;br&gt;Edit: Nevermind, I modified the link to this https://onedrive.live.com/?cid=A29317908CEA783A&amp;amp;id=A29317908CEA783A!428&lt;br&gt;</description></item><item><title>How to Use Crosslight Enterprise Framework to Add Activation Process</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-Enterprise-Framework-to-Add-Activation-Process/</link><pubDate>Wed, 28 Jan 2015 06:24:18 GMT</pubDate><dc:creator>yudi</dc:creator><category>Crosslight</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please find my simple sample which I uploaded to &lt;a href="https://onedrive.live.com/download?resid=A29317908CEA783A%21428" target="_blank"&gt;OneDrive&lt;/a&gt;. The sample is created using business project template. I modified LoginViewModel.cs and IdentityController.cs file where I add method (GenerateServerUrl) and override AppSettings's WebServerUrl.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Feel free to let me know whether it helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight Enterprise Framework to Add Activation Process</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-Enterprise-Framework-to-Add-Activation-Process/</link><pubDate>Tue, 27 Jan 2015 17:18:37 GMT</pubDate><dc:creator>technical@intersoftpt.com</dc:creator><category>Crosslight</category><description>&lt;p&gt;Hello Jimmy,&lt;/p&gt;&lt;p&gt;Looking at your code, it supposed to work correctly. I also presume that you already have the appSettings registered in the constructor (which set other settings). As long as the appSettings was previously registered, you will then be able to resolve it at any point of your application, including OnStart method. The changes you made to the appSettings in the OnStart will persist automatically (as it's instance member assignment).&lt;/p&gt;&lt;p&gt;If you still encounter issue, feel free to post the error details so we can help to investigate what could be missing.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>How to Use Crosslight Enterprise Framework to Add Activation Process</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-Enterprise-Framework-to-Add-Activation-Process/</link><pubDate>Fri, 23 Jan 2015 10:37:30 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><category>Crosslight</category><description>Hi,&lt;br&gt;&lt;br&gt;Kindly provide a sample on how you would implement this scenario using the business template. Seems like there are services that have been broken, which are dependent to the AppSettings. The code snippet you have provided, does it have to be inside the ApplicationServiceBase.OnStart method? Before the lines of codes provided below? &lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;span style="font-weight: bold;"&gt;if &lt;/span&gt;(!this.ActivationService.IsActivated())&lt;br&gt;{&lt;br&gt;    // Inside this viewmodel, a company code will be accepted from user's input. &lt;br&gt;    // The company code will be validated. Once confirmed valid, the details to&lt;br&gt;    // construct the Url for Crosslight's services will be retrieved and stored&lt;br&gt;    // to the device for future reference. Then, the Url will be generated and&lt;br&gt;    // assigned to the WebServerUrl and BaseAppUrl respectively. Afterwhich, the&lt;br&gt;    // user will be redirected to the LoginView via HomeViewModel.&lt;br&gt;    this.SetRootViewModel&amp;lt;ActivationViewModel&amp;gt;();&lt;br&gt;}&lt;br&gt;&lt;span style="font-weight: bold;"&gt;else&lt;/span&gt;&lt;br&gt;{&lt;br&gt;    // Initialize the AppSettings here.&lt;br&gt;    var appSettings = Container.Current.Resolve&amp;lt;AppSettings&amp;gt;;&lt;br&gt;    appSettings.WebServerUrl = this.ActivationService.GetStoredWebUrl();&lt;br&gt;    appSettings.BaseAppUrl = appSettings.WebServerUrl + this.ActivationService.GetStoredAppName();&lt;br&gt;    appSettings.BaseImageUrl = appSettings.BaseAppUrl + "/images/";&lt;br&gt;    appSettings.RestServiceUrl = appSettings.BaseAppUrl + "/data/Inventory";&lt;br&gt;    appSettings.IdentityServiceUrl = appSettings.BaseAppUrl + "/data/Identity";&lt;br&gt;    appSettings.PushNotificationServiceUrl = appSettings.BaseAppUrl + "/data/PushNotification";&lt;br&gt;	&lt;br&gt;    // Initialize the account service&lt;br&gt;    this.AccountService.Initialize(typeof(LoginViewModel));&lt;br&gt;&lt;br&gt;    // Set the root ViewModel to be displayed at startup&lt;br&gt;    &lt;span style="font-weight: bold;"&gt;if &lt;/span&gt;(!this.AccountService.IsLoggedIn())&lt;br&gt;    {&lt;br&gt;        // Not logged-in, redirect user to the home page&lt;br&gt;        this.SetRootViewModel&amp;lt;HomeViewModel&amp;gt;();&lt;br&gt;    }&lt;br&gt;    &lt;span style="font-weight: bold;"&gt;else&lt;/span&gt;&lt;br&gt;    {&lt;br&gt;        // Redirect user to main UI&lt;br&gt;        this.SetRootViewModel&amp;lt;DrawerViewModel&amp;gt;();&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    // Push notification registration.&lt;br&gt;    this.RegisterDeviceForPushNotification();   &lt;br&gt;}&lt;br&gt;&lt;/pre&gt;&lt;br&gt;You mentioned that subsequent calls to the services instantiated at the constructor will honor the new values. We would appreciate it if you could provide a sample project.&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;</description></item><item><title>How to Use Crosslight Enterprise Framework to Add Activation Process</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-Enterprise-Framework-to-Add-Activation-Process/</link><pubDate>Mon, 05 Jan 2015 14:19:04 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><category>Crosslight</category><description>Yes, we need to talk to an activation server to generate the Url before the client can login. That Url will be used by the repositories connected to the server where data is served. It should be stored in the device securely, same way the login credentials are, so it can be retrieved every time the app starts and assigned to the WebServerUrl property. It's pretty much the same as the login process, because the Url can also be revoked, should the user decides to change Company Code to generate a different Url.</description></item><item><title>How to Use Crosslight Enterprise Framework to Add Activation Process</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-Enterprise-Framework-to-Add-Activation-Process/</link><pubDate>Mon, 05 Jan 2015 12:49:25 GMT</pubDate><dc:creator>technical@intersoftpt.com</dc:creator><category>Crosslight</category><description>&lt;p&gt;Hello Jimmy,&lt;/p&gt;&lt;p&gt;In your scenario, do you need to talk with the server before the login? If not, then presumably you can generate the web server URL based on the company code in the client.&lt;/p&gt;&lt;p&gt;If that's the case, I'd suggest you to add a text field in the same login form, i.e., above the user name field. This avoids unnecessary complexity and also provides a good experience for your users. I'd imagine that you can capture the company code in the LoginViewModel and then generate the web server URL respectively. You can then easily override the appSetting's WebServerUrl in the method by resolving the instance of the setting through the following code:&lt;/p&gt;&lt;pre&gt;&lt;br&gt;&lt;br&gt;var settings = Container.Current.Resolve&amp;lt;AppSettings&amp;gt;;&lt;br&gt;settings.WebServerUrl = GenerateServerUrl(companyCode);&lt;br&gt;&lt;br&gt;&lt;/pre&gt;&lt;p&gt;Once the desired properties are set to the app settings, the subsequent call to the service will honor the new values.&lt;/p&gt;&lt;p&gt;Hope this helps!&lt;/p&gt;</description></item><item><title>How to Use Crosslight Enterprise Framework to Add Activation Process</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-Enterprise-Framework-to-Add-Activation-Process/</link><pubDate>Mon, 29 Dec 2014 17:56:29 GMT</pubDate><dc:creator>jtungol@silentpartnersoft.com</dc:creator><category>Crosslight</category><description>&lt;p&gt;Hi Guys,&lt;/p&gt;&lt;p&gt;Aside from User Authentication process... how do we add a step before the login process? Say we need to add a step before the user login with a username and a password. Keeping in mind that we disabled social services since the app was designed for specific clients and unavailable for public use. Now, this additional pre-login process should capture a company code that will be used to generate the URL for the enterprise Web API, and should be saved the same way as the user's cached session data. How do we implement this scenario, in such a way the we need to EnsureActivation in order to specify a valid URL to the AppSettings.WebServerUrl before a user can login and use the app?&lt;/p&gt;&lt;p&gt;This scenario is needed due to multiple clients, which can serve their own data and/or web service. And for the same reason, a company code is needed to identify the database connection string.&lt;/p&gt;&lt;p&gt;Please advise. Thanks!&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>