Telerik Cloud Controls for Windows Phone are designed to support different Cloud Service providers. Currently there is a fully functional implementation backed by the Telerik Cloud Services, codenamed Everlive. The cloud access us ensured by a group of interfaces
internally used by the controls. The main cloud access point for all Telerik Cloud Components is the CloudProvider class.
Using the CloudProvider class
The Telerik.Windows.Cloud.CloudProvider class exposes a method called Init which creates a connection to a specific cloud service. The
following code snippet demonstrates how this is done:
private void InitializeProvider()
EverliveProviderSettings settings = new EverliveProviderSettings();
settings.ApiKey = "$EverliveApplicationKey$";
HTTP or HTTPS?
By default the connection to the Everlive cloud service is not over HTTPS. If you want to activate HTTPS for your cloud service calls
you can set the UseHttps property exposed by the EverliveProviderSettings class.
After this call, the internal Telerik Cloud Services (a.k.a. Everlive) infrastructure is set up and ready to use.
Additionally, the CloudProvider class exposes the Current property
which returns an implementation of the ICloudProviderInfo interface which provides you with contextual information about the current cloud connection.
This interface exposes the following properties:
- IsLoggedIn - returns a bool that indicates whether there is a user logged in with the current cloud context
- CurrentUser - returns an implementation of the ICloudUser inteface that represents the current user if any
- CurrentSettings - returns an implementation of the ICloudSettings inteface that gives you access to settings that are stored in the cloud
- NativeConnection - returns an object that represents the native cloud connection. In the Telerik Cloud Services case this would be the EverliveApp object
For more information about the Telerik Cloud Services (Everlive), please visit the Everlive portal:
|If you need to make custom calls to the cloud service used by the infrastructure described above, you should use
the NativeConnection property accessible through the CloudProvider class.|