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.Linq; | |
using Microsoft.Web.Deployment; | |
namespace MSDeploySample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
exports.post = function(request, response) { | |
var table = request.service.tables.getTable('sampletable'); | |
table.insert({ | |
userid: request.body.UserId, | |
text: request.body.Text | |
}, { | |
success: function(results) { | |
response.send(statusCodes.OK, { message : '拝承' }); | |
} | |
}); |
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.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.WindowsAzure.MobileServices; | |
using Newtonsoft.Json.Linq; | |
namespace MobileClient.Core |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using MobileClient.Core; | |
namespace MobilseClient.ConsoleApp | |
{ | |
class Program |
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
Param ( | |
$parameters = @{}, | |
$srcFolder, | |
$scriptFolder, | |
$projectName, | |
$projectVersion | |
) | |
# get script variables | |
$nugetApiKey = $parameters["NuGetApiKey-secure"] |
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.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Web.Http; | |
using System.Web.Http.Controllers; | |
using MetroEShoppingService.Models; | |
using Microsoft.WindowsAzure.Mobile.Service.Security; | |
using Microsoft.WindowsAzure.Mobile.Service.Tables; |
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.Collections.Generic; | |
using System.Configuration; | |
using System.Data.Common; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Web; | |
using Dapper; | |
namespace MetroEShoppingService.Models |
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
CREATE TABLE [<MobileServiceName>].[UserDevices] ( | |
[id] NVARCHAR (255) CONSTRAINT [DF_UserDevices_id] DEFAULT (CONVERT([nvarchar](255),newid(),(0))) NOT NULL, | |
[__createdAt] DATETIMEOFFSET (3) CONSTRAINT [DF_UserDevices___createdAt] DEFAULT (CONVERT([datetimeoffset](3),sysutcdatetime(),(0))) NOT NULL, | |
[__updatedAt] DATETIMEOFFSET (3) NULL, | |
[__version] ROWVERSION NOT NULL, | |
[userId] NVARCHAR (450) NULL, | |
[deviceId] NVARCHAR (MAX) NULL, | |
[channeluri] NVARCHAR (MAX) NULL, | |
PRIMARY KEY NONCLUSTERED ([id] ASC) | |
); |
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.Linq; | |
using Microsoft.Web.Deployment; | |
namespace MSDeploySample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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.Collections.Generic; | |
using System.Linq; | |
using System.Management.Automation; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace MyCmdlets | |
{ | |
[Cmdlet(VerbsCommon.Get, "Greeting")] |
OlderNewer