This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ListSpecificApplicationTest() | |
{ | |
var e = new string(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void SetListViewHeader() | |
{ | |
_ds = new DataSet(); | |
DataTable table = new DataTable(); | |
_ds.Tables.Add(table); | |
DataColumn col = new DataColumn("Name", typeof(string)); | |
table.Columns.Add(col); | |
col = new DataColumn("Date", typeof(DateTime)); | |
table.Columns.Add(col); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.WindowsAzure.MobileServices; | |
using System; | |
using Windows.Foundation; | |
namespace MobileServices | |
{ | |
public class AdminServiceFilter : IServiceFilter | |
{ | |
private bool disableScripts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static MobileServiceClient MobileService = | |
new MobileServiceClient( | |
"https://Your URL/", | |
"Your Application Key" | |
); | |
public MobileServiceClient BuildMobileServiceWithAdminAccess(string masterKey) | |
{ | |
return App.MobileService.WithFilter(new AdminServiceFilter(true, masterKey)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.WindowsAzure.MobileServices; | |
using System; | |
using Windows.Foundation; | |
namespace MobileServices | |
{ | |
public class AdminServiceFilter : IServiceFilter | |
{ | |
private bool disableScripts; | |
private string masterKey; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Add custom parameters to each request when applying this filter to a mobile service client. | |
/// </summary> | |
public class CustomParametersServiceFilter : IServiceFilter | |
{ | |
private IDictionary<string, object> parameters; | |
public CustomParametersServiceFilter(IDictionary<string, object> parameters) | |
{ | |
this.parameters = parameters; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Data | |
{ | |
public MobileServiceClient MobileService = new MobileServiceClient("", ""); | |
private IMobileServiceTable<UserGroupExtended> userGroupExtendedTable; | |
public async Task<IList<UserGroupExtended>> GetGroupUsers(string groupId) | |
{ | |
return await this.MobileService.GetTable<UserGroupExtended>(new { groupId = groupId }).ToListAsync(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
IF "%SITE_FLAVOR%" == "nodejs" ( | |
deploy.node.cmd | |
) ELSE ( | |
IF "%SITE_FLAVOR%" == "mvc4" ( | |
deploy.mvc4.cmd | |
) ELSE ( | |
echo You have to set SITE_FLAVOR setting to either "nodejs" or "mvc4" | |
exit /b 1 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
namespace ContinuousHelloWorld | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
while (true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<CopyAllFilesToSingleFolderForPackageDependsOn> | |
$(CopyAllFilesToSingleFolderForPackageDependsOn); | |
AddWebJobFilesToPublish; | |
</CopyAllFilesToSingleFolderForPackageDependsOn> | |
<_DestinationType>AzureWebSite</_DestinationType> | |
</PropertyGroup> | |
</Project> |