Skip to content

Instantly share code, notes, and snippets.

{
"name": "miindicedesearch",
"fields": [{
"name": "id",
"type": "Edm.String",
"key": true,
"searchable": false
}, {
"name": "descripcion",
"type": "Edm.String",
POST https://[Nombre del servicio de Search].search.windows.net/indexers?api-version=[api-version]
Content-Type: application/json
api-key: [Key de administrador del servicio de Search]
{
"name" : "miindexadordesearch",
"dataSourceName" : "miorigendedatosdocumentdb",
"targetIndexName" : "miindicedesearch",
"schedule" : { "interval" : "PT1H", "startTime" : "2015-04-01T00:00:00Z" }
}
GET https://[Nombre del servicio de Search].search.windows.net/indexers/[nombre del indexador]/status?api-version=[api-version]
api-key: [Key de administrador del servicio de Search]
{
"status":"running",
"lastResult": {
"status":"success",
"errorMessage":null,
"startTime":"2015-04-01T02:37:18.853Z",
"endTime":"2015-04-01T02:37:19.012Z",
"errors":[],
"itemsProcessed":2501,
"itemsFailed":0,
private MobileServiceUser usuario;
private async System.Threading.Tasks.Task Autenticar()
{
while (usuario == null)
{
string mensaje;
try
{
usuario = await App.MobileService
.LoginAsync(MobileServiceAuthenticationProvider.Facebook);
async void MainPage_Loaded(object sender, RoutedEventArgs e)
{
await Autenticar();
RefreshTodoItems();
}
public MainPage()
{
InitializeComponent();
this.Loaded += MainPage_Loaded;
}
@gbellmann
gbellmann / app.config
Created April 13, 2015 00:24
Configuration element in app.config for the Azure Storage account settings
<configuration>
<appSettings>
<add key="StorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=<your account name>;AccountKey=<your account key>" />
</appSettings>
</configuration>
@gbellmann
gbellmann / GetAccount.cs
Created April 13, 2015 00:27
Function to get an Azure Storage account from the configuration settings
using Microsoft.WindowsAzure.ServiceRuntime;
using Microsoft.WindowsAzure.Storage;
public static CloudStorageAccount GetAccount()
{
const string configName = "StorageConnectionString";
string value = RoleEnvironment.GetConfigurationSettingValue(configName);
return CloudStorageAccount.Parse(value);
}