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",
{
"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,
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]
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" }
}
async void MainPage_Loaded(object sender, RoutedEventArgs e)
{
await Autenticar();
RefreshTodoItems();
}
public MainPage()
{
InitializeComponent();
this.Loaded += MainPage_Loaded;
}
private MobileServiceUser usuario;
private async System.Threading.Tasks.Task Autenticar()
{
while (usuario == null)
{
string mensaje;
try
{
usuario = await App.MobileService
.LoginAsync(MobileServiceAuthenticationProvider.Facebook);
@gbellmann
gbellmann / GetEntity.cs
Created April 13, 2015 00:30
Function to get an Azure Storage Table Entity by it's partition key and row key.
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
public object GetEntity(string partitionKey, string rowKey)
{
CloudStorageAccount account = GetAccount();
CloudTableClient cloudTableClient = account.CreateCloudTableClient();
CloudTable table = cloudTableClient.GetTableReference("YourTableName");
TableOperation retrieveOperation = TableOperation.Retrieve(partitionKey, rowKey);
TableResult retrievedResult = table.Execute(retrieveOperation);
@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);
}