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
function Get-ObjectMembers { | |
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory=$True, ValueFromPipeline=$True)] | |
[PSCustomObject]$obj | |
) | |
$obj | Get-Member -MemberType NoteProperty | ForEach-Object { | |
$key = $_.Name | |
[PSCustomObject]@{Key = $key; Value = $obj."$key"} | |
} |
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
pool: | |
name: Azure Pipelines | |
demands: npm | |
steps: | |
- task: Npm@1 | |
displayName: 'npm install' | |
inputs: | |
workingDir: '$(Build.SourcesDirectory)' | |
verbose: false |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: azure-vote-back | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: azure-vote-back | |
template: |
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 UsersController : Controller | |
{ | |
private readonly DatabaseContext _databaseContext; | |
public UsersController(DatabaseContext databaseContext) | |
{ | |
_databaseContext = databaseContext; | |
} | |
public async Task<ActionResult<User>> Get(int id) | |
{ |
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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> | |
<xsl:key name="ISSUETYPES" match="/Report/Issues/Project/Issue" use="@TypeId"/> | |
<xsl:output method="html" indent="no"/> | |
<xsl:template match="/" name="TopLevelReport"> | |
<html> | |
<head> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" /> | |
<style> | |
body {font-family: 'Open Sans', sans-serif;} |
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
{ | |
// Use IntelliSense to find out which attributes exist for C# debugging | |
// Use hover for the description of the existing attributes | |
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": ".NET Core Launch (web)", | |
"type": "coreclr", | |
"request": "launch", |
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
<h1>This is a view component</h1> | |
<!-- | |
Make sure the path is correct, Views > Shared > Components > [Component Name] > Default.cshtml | |
SampleApp2\Views\Shared\Components\HelloWorld\Default.cshtml | |
--> |
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
; Script generated by the Inno Setup Script Wizard. | |
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | |
#define MyAppName "dotnet core windows service" | |
#define MyAppVersion "1.5" | |
#define MyAppPublisher "dotnetthoughts" | |
#define MyAppURL "http://dotnetthoughts.net/" | |
[Setup] | |
; NOTE: The value of AppId uniquely identifies this application. |
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.Threading.Tasks; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
using WebApp2.Middlewares; |
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
@{ | |
ViewBag.Title = "Chat"; | |
} | |
<input id="txtMessage" style="width:40%" /> | |
<input id="cmdSend" type="button" value="Send" /> | |
<input id="cmdLeave" type="button" value="Log out" /> | |
<br /> |