Last active
August 29, 2015 14:21
-
-
Save AlexZeitler/2185368bb8722e781724 to your computer and use it in GitHub Desktop.
ASP.NET 5 (DNX) beta 4 perf tests (ASP.NET 5 is not performance optimized yet in any way!)
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
[~/code/aspnet5perf]$ ab -n 1000 -c 100 http://localhost:5005/api/values | |
This is ApacheBench, Version 2.3 <$Revision: 1528965 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking localhost (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Completed 300 requests | |
Completed 400 requests | |
Completed 500 requests | |
Completed 600 requests | |
Completed 700 requests | |
Completed 800 requests | |
Completed 900 requests | |
Completed 1000 requests | |
Finished 1000 requests | |
Server Software: | |
Server Hostname: localhost | |
Server Port: 5005 | |
Document Path: /api/values | |
Document Length: 19 bytes | |
Concurrency Level: 100 | |
Time taken for tests: 0.280 seconds | |
Complete requests: 1000 | |
Failed requests: 0 | |
Total transferred: 85000 bytes | |
HTML transferred: 19000 bytes | |
Requests per second: 3576.09 [#/sec] (mean) | |
Time per request: 27.964 [ms] (mean) | |
Time per request: 0.280 [ms] (mean, across all concurrent requests) | |
Transfer rate: 296.84 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 1.0 0 5 | |
Processing: 5 26 11.5 20 73 | |
Waiting: 4 26 11.5 20 73 | |
Total: 9 27 12.3 20 75 | |
Percentage of the requests served within a certain time (ms) | |
50% 20 | |
66% 24 | |
75% 29 | |
80% 32 | |
90% 41 | |
95% 57 | |
98% 69 | |
99% 72 | |
100% 75 (longest request) |
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
[~/code/aspnet5perf]$ ab -n 5000 -c 100 http://localhost:5005/api/values | |
This is ApacheBench, Version 2.3 <$Revision: 1528965 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking localhost (be patient) | |
Completed 500 requests | |
Completed 1000 requests | |
Completed 1500 requests | |
Completed 2000 requests | |
Completed 2500 requests | |
Completed 3000 requests | |
Completed 3500 requests | |
Completed 4000 requests | |
Completed 4500 requests | |
Completed 5000 requests | |
Finished 5000 requests | |
Server Software: | |
Server Hostname: localhost | |
Server Port: 5005 | |
Document Path: /api/values | |
Document Length: 19 bytes | |
Concurrency Level: 100 | |
Time taken for tests: 0.955 seconds | |
Complete requests: 5000 | |
Failed requests: 0 | |
Total transferred: 425000 bytes | |
HTML transferred: 95000 bytes | |
Requests per second: 5233.39 [#/sec] (mean) | |
Time per request: 19.108 [ms] (mean) | |
Time per request: 0.191 [ms] (mean, across all concurrent requests) | |
Transfer rate: 434.41 [Kbytes/sec] received | |
Connection Times (ms) | |
min mean[+/-sd] median max | |
Connect: 0 0 0.5 0 5 | |
Processing: 3 19 7.4 16 66 | |
Waiting: 2 19 7.4 16 66 | |
Total: 7 19 7.3 17 66 | |
Percentage of the requests served within a certain time (ms) | |
50% 17 | |
66% 19 | |
75% 20 | |
80% 20 | |
90% 21 | |
95% 23 | |
98% 58 | |
99% 60 | |
100% 66 (longest request) |
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
[~/code/aspnet5perf]$ dnvm list | |
Active Version Runtime Arch Location Alias | |
------ ------- ------- ---- -------- ----- | |
* 1.0.0-beta4 mono ~/.dnx/runtimes default |
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
description: Desktop Computer | |
product: X58A-UD5 () | |
vendor: Gigabyte Technology Co., Ltd. | |
width: 64 bits | |
capabilities: smbios-2.4 dmi-2.4 vsyscall32 | |
configuration: boot=normal chassis=desktop uuid=00000000-0000-0000-0000-1C6F659F7EEF | |
*-core | |
description: Motherboard | |
product: X58A-UD5 | |
vendor: Gigabyte Technology Co., Ltd. | |
physical id: 0 | |
version: x.x | |
*-firmware | |
description: BIOS | |
vendor: Award Software International, Inc. | |
physical id: 0 | |
version: FC | |
date: 12/23/2010 | |
size: 128KiB | |
capacity: 1984KiB | |
capabilities: pci pnp upgrade shadowing cdboot bootselect edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification | |
*-cpu | |
description: CPU | |
product: Intel(R) Core(TM) i7 CPU 960 @ 3.20GHz | |
vendor: Intel Corp. | |
physical id: 4 | |
bus info: cpu@0 | |
version: Intel(R) Core(TM) i7 CPU | |
slot: Socket 1366 | |
size: 1596MHz | |
capacity: 4GHz | |
width: 64 bits | |
clock: 133MHz | |
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida dtherm tpr_shadow vnmi flexpriority ept vpid cpufreq | |
*-cache:0 | |
description: L1 cache | |
physical id: c | |
slot: Internal Cache | |
size: 64KiB | |
capacity: 64KiB | |
capabilities: synchronous internal write-back | |
*-cache:1 | |
description: L2 cache | |
physical id: d | |
slot: External Cache | |
size: 8MiB | |
capabilities: synchronous internal write-back | |
*-memory | |
description: System Memory | |
physical id: 16 | |
slot: System board or motherboard | |
size: 24GiB | |
*-bank:0 | |
description: DIMM 400 MHz (2,5 ns) | |
physical id: 0 | |
slot: A0 | |
size: 4GiB | |
width: 2276 bits | |
clock: 400MHz (2.5ns) | |
*-bank:1 | |
description: DIMM 400 MHz (2,5 ns) | |
physical id: 1 | |
slot: A1 | |
size: 4GiB | |
width: 2276 bits | |
clock: 400MHz (2.5ns) | |
*-bank:2 | |
description: DIMM 400 MHz (2,5 ns) | |
physical id: 2 | |
slot: A2 | |
size: 4GiB | |
width: 2276 bits | |
clock: 400MHz (2.5ns) | |
*-bank:3 | |
description: DIMM 400 MHz (2,5 ns) | |
physical id: 3 | |
slot: A3 | |
size: 4GiB | |
width: 2276 bits | |
clock: 400MHz (2.5ns) | |
*-bank:4 | |
description: DIMM 400 MHz (2,5 ns) | |
physical id: 4 | |
slot: A4 | |
size: 4GiB | |
width: 2276 bits | |
clock: 400MHz (2.5ns) | |
*-bank:5 | |
description: DIMM 400 MHz (2,5 ns) | |
physical id: 5 | |
slot: A5 | |
size: 4GiB | |
width: 2276 bits | |
clock: 400MHz (2.5ns) | |
*-pci:0 | |
description: Host bridge | |
product: 5520/5500/X58 I/O Hub to ESI Port | |
vendor: Intel Corporation | |
physical id: 100 | |
bus info: pci@0000:00:00.0 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:0 | |
description: PCI bridge | |
product: 5520/5500/X58 I/O Hub PCI Express Root Port 1 | |
vendor: Intel Corporation | |
physical id: 1 | |
bus info: pci@0000:00:01.0 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pci msi pciexpress pm normal_decode bus_master cap_list | |
configuration: driver=pcieport | |
resources: irq:16 ioport:8000(size=4096) memory:fb800000-fb8fffff ioport:dff00000(size=1048576) | |
*-storage | |
description: SATA controller | |
product: 88SE9128 PCIe SATA 6 Gb/s RAID controller | |
vendor: Marvell Technology Group Ltd. | |
physical id: 0 | |
bus info: pci@0000:01:00.0 | |
version: 11 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: storage pm msi pciexpress ahci_1.0 bus_master cap_list rom | |
configuration: driver=ahci latency=0 | |
resources: irq:57 ioport:8f00(size=8) ioport:8e00(size=4) ioport:8d00(size=8) ioport:8c00(size=4) ioport:8b00(size=16) memory:fb8ff000-fb8ff7ff memory:dff00000-dff0ffff | |
*-pci:1 | |
description: PCI bridge | |
product: 5520/5500/X58 I/O Hub PCI Express Root Port 2 | |
vendor: Intel Corporation | |
physical id: 2 | |
bus info: pci@0000:00:02.0 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pci msi pciexpress pm normal_decode bus_master cap_list | |
configuration: driver=pcieport | |
resources: irq:16 memory:fba00000-fbafffff | |
*-usb | |
description: USB controller | |
product: uPD720200 USB 3.0 Host Controller | |
vendor: NEC Corporation | |
physical id: 0 | |
bus info: pci@0000:02:00.0 | |
version: 03 | |
width: 64 bits | |
clock: 33MHz | |
capabilities: pm msi msix pciexpress xhci bus_master cap_list | |
configuration: driver=xhci_hcd latency=0 | |
resources: irq:16 memory:fbafe000-fbafffff | |
*-pci:2 | |
description: PCI bridge | |
product: 5520/5500/X58 I/O Hub PCI Express Root Port 3 | |
vendor: Intel Corporation | |
physical id: 3 | |
bus info: pci@0000:00:03.0 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pci msi pciexpress pm normal_decode bus_master cap_list | |
configuration: driver=pcieport | |
resources: irq:16 ioport:9000(size=4096) memory:f9000000-faffffff ioport:e0000000(size=268435456) | |
*-display | |
description: VGA compatible controller | |
product: GF108GL [Quadro 600] | |
vendor: NVIDIA Corporation | |
physical id: 0 | |
bus info: pci@0000:03:00.0 | |
version: a1 | |
width: 64 bits | |
clock: 33MHz | |
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom | |
configuration: driver=nouveau latency=0 | |
resources: irq:59 memory:f9000000-f9ffffff memory:e0000000-e7ffffff memory:ee000000-efffffff ioport:9f00(size=128) memory:e8000000-e807ffff | |
*-multimedia | |
description: Audio device | |
product: GF108 High Definition Audio Controller | |
vendor: NVIDIA Corporation | |
physical id: 0.1 | |
bus info: pci@0000:03:00.1 | |
version: a1 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pm msi pciexpress bus_master cap_list | |
configuration: driver=snd_hda_intel latency=0 | |
resources: irq:17 memory:faffc000-faffffff | |
*-generic:0 UNCLAIMED | |
description: PIC | |
product: 7500/5520/5500/X58 Physical and Link Layer Registers Port 0 | |
vendor: Intel Corporation | |
physical id: 10 | |
bus info: pci@0000:00:10.0 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: 8259 cap_list | |
configuration: latency=0 | |
*-generic:1 UNCLAIMED | |
description: PIC | |
product: 7500/5520/5500/X58 Routing and Protocol Layer Registers Port 0 | |
vendor: Intel Corporation | |
physical id: 10.1 | |
bus info: pci@0000:00:10.1 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: 8259 | |
configuration: latency=0 | |
*-generic:2 UNCLAIMED | |
description: PIC | |
product: 7500/5520/5500 Physical and Link Layer Registers Port 1 | |
vendor: Intel Corporation | |
physical id: 11 | |
bus info: pci@0000:00:11.0 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: 8259 cap_list | |
configuration: latency=0 | |
*-generic:3 UNCLAIMED | |
description: PIC | |
product: 7500/5520/5500 Routing & Protocol Layer Register Port 1 | |
vendor: Intel Corporation | |
physical id: 11.1 | |
bus info: pci@0000:00:11.1 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: 8259 | |
configuration: latency=0 | |
*-generic:4 UNCLAIMED | |
description: PIC | |
product: 7500/5520/5500/X58 I/O Hub I/OxAPIC Interrupt Controller | |
vendor: Intel Corporation | |
physical id: 13 | |
bus info: pci@0000:00:13.0 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pm io_x_-apic bus_master cap_list | |
configuration: latency=0 | |
resources: memory:fbfff000-fbffffff | |
*-generic:5 | |
description: PIC | |
product: 7500/5520/5500/X58 I/O Hub System Management Registers | |
vendor: Intel Corporation | |
physical id: 14 | |
bus info: pci@0000:00:14.0 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pciexpress 8259 cap_list | |
configuration: driver=i7core_edac latency=0 | |
resources: irq:0 | |
*-generic:6 UNCLAIMED | |
description: PIC | |
product: 7500/5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers | |
vendor: Intel Corporation | |
physical id: 14.1 | |
bus info: pci@0000:00:14.1 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pciexpress 8259 cap_list | |
configuration: latency=0 | |
*-generic:7 UNCLAIMED | |
description: PIC | |
product: 7500/5520/5500/X58 I/O Hub Control Status and RAS Registers | |
vendor: Intel Corporation | |
physical id: 14.2 | |
bus info: pci@0000:00:14.2 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pciexpress 8259 cap_list | |
configuration: latency=0 | |
*-generic:8 UNCLAIMED | |
description: PIC | |
product: 7500/5520/5500/X58 Trusted Execution Technology Registers | |
vendor: Intel Corporation | |
physical id: 15 | |
bus info: pci@0000:00:15.0 | |
version: 13 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: io_x_-apic | |
configuration: latency=0 | |
*-usb:0 | |
description: USB controller | |
product: 82801JI (ICH10 Family) USB UHCI Controller #4 | |
vendor: Intel Corporation | |
physical id: 1a | |
bus info: pci@0000:00:1a.0 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: uhci bus_master cap_list | |
configuration: driver=uhci_hcd latency=0 | |
resources: irq:16 ioport:ff00(size=32) | |
*-usb:1 | |
description: USB controller | |
product: 82801JI (ICH10 Family) USB UHCI Controller #5 | |
vendor: Intel Corporation | |
physical id: 1a.1 | |
bus info: pci@0000:00:1a.1 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: uhci bus_master cap_list | |
configuration: driver=uhci_hcd latency=0 | |
resources: irq:21 ioport:fe00(size=32) | |
*-usb:2 | |
description: USB controller | |
product: 82801JI (ICH10 Family) USB UHCI Controller #6 | |
vendor: Intel Corporation | |
physical id: 1a.2 | |
bus info: pci@0000:00:1a.2 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: uhci bus_master cap_list | |
configuration: driver=uhci_hcd latency=0 | |
resources: irq:18 ioport:fd00(size=32) | |
*-usb:3 | |
description: USB controller | |
product: 82801JI (ICH10 Family) USB2 EHCI Controller #2 | |
vendor: Intel Corporation | |
physical id: 1a.7 | |
bus info: pci@0000:00:1a.7 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pm debug ehci bus_master cap_list | |
configuration: driver=ehci-pci latency=0 | |
resources: irq:18 memory:fbffe000-fbffe3ff | |
*-multimedia | |
description: Audio device | |
product: 82801JI (ICH10 Family) HD Audio Controller | |
vendor: Intel Corporation | |
physical id: 1b | |
bus info: pci@0000:00:1b.0 | |
version: 00 | |
width: 64 bits | |
clock: 33MHz | |
capabilities: pm msi pciexpress bus_master cap_list | |
configuration: driver=snd_hda_intel latency=0 | |
resources: irq:58 memory:fbff4000-fbff7fff | |
*-pci:3 | |
description: PCI bridge | |
product: 82801JI (ICH10 Family) PCI Express Root Port 1 | |
vendor: Intel Corporation | |
physical id: 1c | |
bus info: pci@0000:00:1c.0 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list | |
configuration: driver=pcieport | |
resources: irq:40 ioport:1000(size=4096) memory:f0000000-f01fffff ioport:f0200000(size=2097152) | |
*-pci:4 | |
description: PCI bridge | |
product: 82801JI (ICH10 Family) PCI Express Port 2 | |
vendor: Intel Corporation | |
physical id: 1c.1 | |
bus info: pci@0000:00:1c.1 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list | |
configuration: driver=pcieport | |
resources: irq:41 ioport:e000(size=4096) memory:fb700000-fb7fffff ioport:f0400000(size=2097152) | |
*-storage | |
description: SATA controller | |
product: JMB363 SATA/IDE Controller | |
vendor: JMicron Technology Corp. | |
physical id: 0 | |
bus info: pci@0000:05:00.0 | |
version: 02 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: storage pm pciexpress ahci_1.0 bus_master cap_list | |
configuration: driver=ahci latency=0 | |
resources: irq:17 memory:fb7fe000-fb7fffff | |
*-ide | |
description: IDE interface | |
product: JMB363 SATA/IDE Controller | |
vendor: JMicron Technology Corp. | |
physical id: 0.1 | |
bus info: pci@0000:05:00.1 | |
version: 02 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: ide pm bus_master cap_list | |
configuration: driver=pata_jmicron latency=0 | |
resources: irq:18 ioport:ef00(size=8) ioport:ee00(size=4) ioport:ed00(size=8) ioport:ec00(size=4) ioport:eb00(size=16) | |
*-pci:5 | |
description: PCI bridge | |
product: 82801JI (ICH10 Family) PCI Express Root Port 3 | |
vendor: Intel Corporation | |
physical id: 1c.2 | |
bus info: pci@0000:00:1c.2 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list | |
configuration: driver=pcieport | |
resources: irq:42 ioport:d000(size=4096) memory:fbe00000-fbefffff ioport:f0600000(size=2097152) | |
*-network | |
description: Wireless interface | |
product: RTL8188CE 802.11b/g/n WiFi Adapter | |
vendor: Realtek Semiconductor Co., Ltd. | |
physical id: 0 | |
bus info: pci@0000:06:00.0 | |
logical name: wlan1 | |
version: 01 | |
serial: f4:6d:04:a1:5c:e7 | |
width: 64 bits | |
clock: 33MHz | |
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless | |
configuration: broadcast=yes driver=rtl8192ce driverversion=3.13.0-52-generic firmware=N/A ip=192.168.178.37 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn | |
resources: irq:18 ioport:de00(size=256) memory:fbefc000-fbefffff | |
*-pci:6 | |
description: PCI bridge | |
product: 82801JI (ICH10 Family) PCI Express Root Port 4 | |
vendor: Intel Corporation | |
physical id: 1c.3 | |
bus info: pci@0000:00:1c.3 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list | |
configuration: driver=pcieport | |
resources: irq:43 ioport:c000(size=4096) memory:fbd00000-fbdfffff ioport:f0800000(size=2097152) | |
*-storage | |
description: SATA controller | |
product: JMB363 SATA/IDE Controller | |
vendor: JMicron Technology Corp. | |
physical id: 0 | |
bus info: pci@0000:07:00.0 | |
version: 03 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: storage pm pciexpress ahci_1.0 bus_master cap_list | |
configuration: driver=ahci latency=0 | |
resources: irq:19 memory:fbdfe000-fbdfffff | |
*-ide | |
description: IDE interface | |
product: JMB363 SATA/IDE Controller | |
vendor: JMicron Technology Corp. | |
physical id: 0.1 | |
bus info: pci@0000:07:00.1 | |
version: 03 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: ide pm bus_master cap_list | |
configuration: driver=pata_jmicron latency=0 | |
resources: irq:16 ioport:cf00(size=8) ioport:ce00(size=4) ioport:cd00(size=8) ioport:cc00(size=4) ioport:cb00(size=16) | |
*-pci:7 | |
description: PCI bridge | |
product: 82801JI (ICH10 Family) PCI Express Root Port 5 | |
vendor: Intel Corporation | |
physical id: 1c.4 | |
bus info: pci@0000:00:1c.4 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list | |
configuration: driver=pcieport | |
resources: irq:44 ioport:b000(size=4096) memory:f0a00000-f0dfffff ioport:fbc00000(size=1048576) | |
*-network | |
description: Ethernet interface | |
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller | |
vendor: Realtek Semiconductor Co., Ltd. | |
physical id: 0 | |
bus info: pci@0000:08:00.0 | |
logical name: eth0 | |
version: 06 | |
serial: 1c:6f:65:9f:7e:ed | |
size: 10Mbit/s | |
capacity: 1Gbit/s | |
width: 64 bits | |
clock: 33MHz | |
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation | |
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl_nic/rtl8168e-2.fw latency=0 link=no multicast=yes port=MII speed=10Mbit/s | |
resources: irq:55 ioport:be00(size=256) memory:fbcff000-fbcfffff memory:fbcf8000-fbcfbfff | |
*-pci:8 | |
description: PCI bridge | |
product: 82801JI (ICH10 Family) PCI Express Root Port 6 | |
vendor: Intel Corporation | |
physical id: 1c.5 | |
bus info: pci@0000:00:1c.5 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list | |
configuration: driver=pcieport | |
resources: irq:45 ioport:a000(size=4096) memory:f0e00000-f11fffff ioport:fbb00000(size=1048576) | |
*-network | |
description: Ethernet interface | |
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller | |
vendor: Realtek Semiconductor Co., Ltd. | |
physical id: 0 | |
bus info: pci@0000:09:00.0 | |
logical name: eth1 | |
version: 06 | |
serial: 1c:6f:65:9f:7e:ef | |
size: 10Mbit/s | |
capacity: 1Gbit/s | |
width: 64 bits | |
clock: 33MHz | |
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation | |
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl_nic/rtl8168e-2.fw latency=0 link=no multicast=yes port=MII speed=10Mbit/s | |
resources: irq:56 ioport:ae00(size=256) memory:fbbff000-fbbfffff memory:fbbf8000-fbbfbfff | |
*-usb:4 | |
description: USB controller | |
product: 82801JI (ICH10 Family) USB UHCI Controller #1 | |
vendor: Intel Corporation | |
physical id: 1d | |
bus info: pci@0000:00:1d.0 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: uhci bus_master cap_list | |
configuration: driver=uhci_hcd latency=0 | |
resources: irq:23 ioport:fc00(size=32) | |
*-usb:5 | |
description: USB controller | |
product: 82801JI (ICH10 Family) USB UHCI Controller #2 | |
vendor: Intel Corporation | |
physical id: 1d.1 | |
bus info: pci@0000:00:1d.1 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: uhci bus_master cap_list | |
configuration: driver=uhci_hcd latency=0 | |
resources: irq:19 ioport:fb00(size=32) | |
*-usb:6 | |
description: USB controller | |
product: 82801JI (ICH10 Family) USB UHCI Controller #3 | |
vendor: Intel Corporation | |
physical id: 1d.2 | |
bus info: pci@0000:00:1d.2 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: uhci bus_master cap_list | |
configuration: driver=uhci_hcd latency=0 | |
resources: irq:18 ioport:fa00(size=32) | |
*-usb:7 | |
description: USB controller | |
product: 82801JI (ICH10 Family) USB2 EHCI Controller #1 | |
vendor: Intel Corporation | |
physical id: 1d.7 | |
bus info: pci@0000:00:1d.7 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pm debug ehci bus_master cap_list | |
configuration: driver=ehci-pci latency=0 | |
resources: irq:23 memory:fbffd000-fbffd3ff | |
*-pci:9 | |
description: PCI bridge | |
product: 82801 PCI Bridge | |
vendor: Intel Corporation | |
physical id: 1e | |
bus info: pci@0000:00:1e.0 | |
version: 90 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pci subtractive_decode bus_master cap_list | |
resources: memory:fb900000-fb9fffff | |
*-firewire | |
description: FireWire (IEEE 1394) | |
product: TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link) | |
vendor: Texas Instruments | |
physical id: 6 | |
bus info: pci@0000:0a:06.0 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: pm ohci bus_master cap_list | |
configuration: driver=firewire_ohci latency=32 maxlatency=4 mingnt=2 | |
resources: irq:18 memory:fb9ff000-fb9ff7ff memory:fb9f8000-fb9fbfff | |
*-isa | |
description: ISA bridge | |
product: 82801JIR (ICH10R) LPC Interface Controller | |
vendor: Intel Corporation | |
physical id: 1f | |
bus info: pci@0000:00:1f.0 | |
version: 00 | |
width: 32 bits | |
clock: 33MHz | |
capabilities: isa bus_master cap_list | |
configuration: driver=lpc_ich latency=0 | |
resources: irq:0 | |
*-storage | |
description: SATA controller | |
product: 82801JI (ICH10 Family) SATA AHCI Controller | |
vendor: Intel Corporation | |
physical id: 1f.2 | |
bus info: pci@0000:00:1f.2 | |
version: 00 | |
width: 32 bits | |
clock: 66MHz | |
capabilities: storage msi pm ahci_1.0 bus_master cap_list | |
configuration: driver=ahci latency=0 | |
resources: irq:54 ioport:f900(size=8) ioport:f800(size=4) ioport:f700(size=8) ioport:f600(size=4) ioport:f500(size=32) memory:fbffc000-fbffc7ff | |
*-serial UNCLAIMED | |
description: SMBus | |
product: 82801JI (ICH10 Family) SMBus Controller | |
vendor: Intel Corporation | |
physical id: 1f.3 | |
bus info: pci@0000:00:1f.3 | |
version: 00 | |
width: 64 bits | |
clock: 33MHz | |
configuration: latency=0 | |
resources: memory:fbffb000-fbffb0ff ioport:500(size=32) | |
*-pci:1 | |
description: Host bridge | |
product: Xeon 5500/Core i7 QuickPath Architecture Generic Non-Core Registers | |
vendor: Intel Corporation | |
physical id: 101 | |
bus info: pci@0000:3f:00.0 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:2 | |
description: Host bridge | |
product: Xeon 5500/Core i7 QuickPath Architecture System Address Decoder | |
vendor: Intel Corporation | |
physical id: 102 | |
bus info: pci@0000:3f:00.1 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:3 | |
description: Host bridge | |
product: Xeon 5500/Core i7 QPI Link 0 | |
vendor: Intel Corporation | |
physical id: 103 | |
bus info: pci@0000:3f:02.0 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:4 | |
description: Host bridge | |
product: Xeon 5500/Core i7 QPI Physical 0 | |
vendor: Intel Corporation | |
physical id: 104 | |
bus info: pci@0000:3f:02.1 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:5 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller | |
vendor: Intel Corporation | |
physical id: 105 | |
bus info: pci@0000:3f:03.0 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:6 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Target Address Decoder | |
vendor: Intel Corporation | |
physical id: 106 | |
bus info: pci@0000:3f:03.1 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:7 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Test Registers | |
vendor: Intel Corporation | |
physical id: 107 | |
bus info: pci@0000:3f:03.4 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:8 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Control Registers | |
vendor: Intel Corporation | |
physical id: 108 | |
bus info: pci@0000:3f:04.0 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:9 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Address Registers | |
vendor: Intel Corporation | |
physical id: 109 | |
bus info: pci@0000:3f:04.1 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:10 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Rank Registers | |
vendor: Intel Corporation | |
physical id: 10a | |
bus info: pci@0000:3f:04.2 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:11 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Thermal Control Registers | |
vendor: Intel Corporation | |
physical id: 10b | |
bus info: pci@0000:3f:04.3 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:12 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Control Registers | |
vendor: Intel Corporation | |
physical id: 10c | |
bus info: pci@0000:3f:05.0 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:13 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Address Registers | |
vendor: Intel Corporation | |
physical id: 10d | |
bus info: pci@0000:3f:05.1 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:14 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Rank Registers | |
vendor: Intel Corporation | |
physical id: 10e | |
bus info: pci@0000:3f:05.2 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:15 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Thermal Control Registers | |
vendor: Intel Corporation | |
physical id: 10f | |
bus info: pci@0000:3f:05.3 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:16 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Control Registers | |
vendor: Intel Corporation | |
physical id: 110 | |
bus info: pci@0000:3f:06.0 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:17 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Address Registers | |
vendor: Intel Corporation | |
physical id: 111 | |
bus info: pci@0000:3f:06.1 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:18 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Rank Registers | |
vendor: Intel Corporation | |
physical id: 112 | |
bus info: pci@0000:3f:06.2 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-pci:19 | |
description: Host bridge | |
product: Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Thermal Control Registers | |
vendor: Intel Corporation | |
physical id: 113 | |
bus info: pci@0000:3f:06.3 | |
version: 05 | |
width: 32 bits | |
clock: 33MHz | |
*-scsi:0 | |
physical id: 1 | |
logical name: scsi4 | |
capabilities: emulated | |
*-disk | |
description: ATA Disk | |
product: ST95005620AS | |
vendor: Seagate | |
physical id: 0.0.0 | |
bus info: scsi@4:0.0.0 | |
logical name: /dev/sda | |
version: SD26 | |
serial: 5YX18CSK | |
size: 465GiB (500GB) | |
capabilities: partitioned partitioned:dos | |
configuration: ansiversion=5 sectorsize=512 signature=1b5ee8e0 | |
*-volume:0 | |
description: Windows NTFS volume | |
physical id: 1 | |
bus info: scsi@4:0.0.0,1 | |
logical name: /dev/sda1 | |
version: 3.1 | |
serial: f27a-ff4c | |
size: 98MiB | |
capacity: 100MiB | |
capabilities: primary bootable ntfs initialized | |
configuration: clustersize=4096 created=2011-10-08 03:20:35 filesystem=ntfs label=System Reserved state=clean | |
*-volume:1 | |
description: Windows NTFS volume | |
physical id: 2 | |
bus info: scsi@4:0.0.0,2 | |
logical name: /dev/sda2 | |
version: 3.1 | |
serial: 80144103-a584-a84a-ab28-56d0765d34b0 | |
size: 465GiB | |
capacity: 465GiB | |
capabilities: primary ntfs initialized | |
configuration: clustersize=4096 created=2011-10-07 19:17:41 filesystem=ntfs label=Data state=clean | |
*-scsi:1 | |
physical id: 2 | |
logical name: scsi5 | |
capabilities: emulated | |
*-disk | |
description: ATA Disk | |
product: ST1000LM014-1EJ1 | |
vendor: Seagate | |
physical id: 0.0.0 | |
bus info: scsi@5:0.0.0 | |
logical name: /dev/sdb | |
version: SM14 | |
serial: W3817H7Z | |
size: 931GiB (1TB) | |
capabilities: partitioned partitioned:dos | |
configuration: ansiversion=5 sectorsize=4096 signature=35611647 | |
*-volume | |
description: Windows NTFS volume | |
physical id: 1 | |
bus info: scsi@5:0.0.0,1 | |
logical name: /dev/sdb1 | |
version: 3.1 | |
serial: d054498e-0c9a-a249-8fc2-b97ad36e7f39 | |
size: 931GiB | |
capacity: 931GiB | |
capabilities: primary ntfs initialized | |
configuration: clustersize=4096 created=2014-03-21 20:46:29 filesystem=ntfs label=Virtual Machines 2 modified_by_chkdsk=true mounted_on_nt4=true resize_log_file=true state=dirty upgrade_on_mount=true | |
*-scsi:2 | |
physical id: 3 | |
bus info: usb@2:1 | |
logical name: scsi22 | |
capabilities: emulated scsi-host | |
configuration: driver=usb-storage | |
*-disk:0 | |
description: SCSI Disk | |
product: STORAGE DEVICE | |
vendor: Generic | |
physical id: 0.0.0 | |
bus info: scsi@22:0.0.0 | |
logical name: /dev/sdc | |
version: TS22 | |
serial: 000000000563 | |
capabilities: removable | |
configuration: ansiversion=6 sectorsize=512 | |
*-medium | |
physical id: 0 | |
logical name: /dev/sdc | |
*-disk:1 | |
description: SCSI Disk | |
product: STORAGE DEVICE | |
vendor: Generic | |
physical id: 0.0.1 | |
bus info: scsi@22:0.0.1 | |
logical name: /dev/sdd | |
version: TS22 | |
serial: 000000000563 | |
capabilities: removable | |
configuration: ansiversion=6 sectorsize=512 | |
*-medium | |
physical id: 0 | |
logical name: /dev/sdd | |
*-disk:2 | |
description: SCSI Disk | |
product: STORAGE DEVICE | |
vendor: Generic | |
physical id: 0.0.2 | |
bus info: scsi@22:0.0.2 | |
logical name: /dev/sde | |
version: TS22 | |
serial: 000000000563 | |
capabilities: removable | |
configuration: ansiversion=6 sectorsize=512 | |
*-medium | |
physical id: 0 | |
logical name: /dev/sde | |
*-scsi:3 | |
physical id: 5 | |
logical name: scsi6 | |
capabilities: emulated | |
*-cdrom | |
description: DVD-RAM writer | |
product: DVDRAM GH22NS50 | |
vendor: HL-DT-ST | |
physical id: 0.0.0 | |
bus info: scsi@6:0.0.0 | |
logical name: /dev/cdrom | |
logical name: /dev/sr0 | |
version: TN04 | |
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram | |
configuration: ansiversion=5 status=nodisc | |
*-scsi:4 | |
physical id: 6 | |
logical name: scsi7 | |
capabilities: emulated | |
*-disk | |
description: ATA Disk | |
product: ST750LX003-1AC15 | |
vendor: Seagate | |
physical id: 0.0.0 | |
bus info: scsi@7:0.0.0 | |
logical name: /dev/sdf | |
version: SM12 | |
serial: W2007BRX | |
size: 698GiB (750GB) | |
capabilities: partitioned partitioned:dos | |
configuration: ansiversion=5 sectorsize=4096 signature=2ea3699d | |
*-volume | |
description: Windows NTFS volume | |
physical id: 1 | |
bus info: scsi@7:0.0.0,1 | |
logical name: /dev/sdf1 | |
version: 3.1 | |
serial: 0031f399-6e77-204c-b555-a96bd10c0b17 | |
size: 698GiB | |
capacity: 698GiB | |
capabilities: primary ntfs initialized | |
configuration: clustersize=4096 created=2012-04-03 22:10:11 filesystem=ntfs label=Virtual Machines state=clean | |
*-scsi:5 | |
physical id: 7 | |
logical name: scsi9 | |
capabilities: emulated | |
*-disk | |
description: ATA Disk | |
product: Samsung SSD 840 | |
physical id: 0.0.0 | |
bus info: scsi@9:0.0.0 | |
logical name: /dev/sdg | |
version: DXM0 | |
serial: S1ATNSADA15534J | |
size: 238GiB (256GB) | |
capabilities: partitioned partitioned:dos | |
configuration: ansiversion=5 sectorsize=512 signature=000a2ea1 | |
*-volume | |
description: Windows NTFS volume | |
physical id: 1 | |
bus info: scsi@9:0.0.0,1 | |
logical name: /dev/sdg1 | |
version: 3.1 | |
serial: dae83dee-9282-6645-ad8b-aba90dd11f41 | |
size: 238GiB | |
capacity: 238GiB | |
capabilities: primary ntfs initialized | |
configuration: clustersize=4096 created=2014-02-05 22:07:41 filesystem=ntfs state=clean | |
*-scsi:6 | |
physical id: 8 | |
logical name: scsi11 | |
capabilities: emulated | |
*-disk | |
description: ATA Disk | |
product: Samsung SSD 840 | |
physical id: 0.0.0 | |
bus info: scsi@11:0.0.0 | |
logical name: /dev/sdh | |
version: DXM0 | |
serial: S1ANNSAF240398Z | |
size: 119GiB (128GB) | |
capabilities: partitioned partitioned:dos | |
configuration: ansiversion=5 sectorsize=512 signature=000a990f | |
*-volume:0 | |
description: Linux filesystem partition | |
vendor: Linux | |
physical id: 1 | |
bus info: scsi@11:0.0.0,1 | |
logical name: /dev/sdh1 | |
logical name: /boot | |
version: 1.0 | |
serial: 79749bd2-a608-462d-a947-830d85535fca | |
size: 190MiB | |
capacity: 190MiB | |
capabilities: primary bootable extended_attributes ext2 initialized | |
configuration: filesystem=ext2 lastmountpoint=/boot modified=2015-05-12 14:13:14 mount.fstype=ext2 mount.options=rw,relatime mounted=2015-05-12 12:50:11 state=mounted | |
*-volume:1 | |
description: Extended partition | |
physical id: 2 | |
bus info: scsi@11:0.0.0,2 | |
logical name: /dev/sdh2 | |
size: 119GiB | |
capacity: 119GiB | |
capabilities: primary extended partitioned partitioned:extended | |
*-logicalvolume:0 | |
description: Linux swap / Solaris partition | |
physical id: 5 | |
logical name: /dev/sdh5 | |
capacity: 976MiB | |
capabilities: nofs | |
*-logicalvolume:1 | |
description: Linux filesystem partition | |
physical id: 6 | |
logical name: /dev/sdh6 | |
logical name: / | |
logical name: /var/lib/docker/aufs | |
capacity: 118GiB | |
configuration: mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,data=ordered state=mounted | |
*-scsi:7 | |
physical id: 9 | |
logical name: scsi17 | |
capabilities: emulated | |
*-processor UNCLAIMED | |
description: SCSI Processor | |
physical id: 0.0.0 | |
bus info: scsi@17:0.0.0 | |
*-scsi:8 | |
physical id: a | |
logical name: scsi19 | |
capabilities: emulated | |
*-disk | |
description: ATA Disk | |
product: Samsung SSD 840 | |
physical id: 0.0.0 | |
bus info: scsi@19:0.0.0 | |
logical name: /dev/sdi | |
version: EXT0 | |
serial: S1DHNSAFA68812R | |
size: 465GiB (500GB) | |
capabilities: partitioned partitioned:dos | |
configuration: ansiversion=5 sectorsize=512 signature=943321d6 | |
*-volume | |
description: Windows NTFS volume | |
physical id: 1 | |
bus info: scsi@19:0.0.0,1 | |
logical name: /dev/sdi1 | |
version: 3.1 | |
serial: ba12e809-2234-db41-8c11-4911d53e6f98 | |
size: 465GiB | |
capacity: 465GiB | |
capabilities: primary ntfs initialized | |
configuration: clustersize=4096 created=2014-11-16 16:21:53 filesystem=ntfs label=Virtual Machines 3 (SSD) modified_by_chkdsk=true mounted_on_nt4=true resize_log_file=true state=dirty upgrade_on_mount=true | |
*-network | |
description: Ethernet interface | |
physical id: 1 | |
bus info: usb@2:2 | |
logical name: eth2 | |
serial: 62:fa:cd:86:a4:16 | |
capabilities: ethernet physical | |
configuration: broadcast=yes driver=ipheth link=no multicast=yes |
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
{ | |
"webroot": "wwwroot", | |
"version": "1.0.0-*", | |
"dependencies": { | |
"Kestrel": "1.0.0-beta4", | |
"Microsoft.AspNet.Mvc": "6.0.0-beta4", | |
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta4" | |
}, | |
"commands": { | |
"kestrel" :"Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5005" | |
}, | |
"frameworks": { | |
"dnx451": { }, | |
"dnxcore50": { } | |
}, | |
"exclude": [ | |
"wwwroot", | |
"node_modules", | |
"bower_components" | |
], | |
"publishExclude": [ | |
"node_modules", | |
"bower_components", | |
"**.xproj", | |
"**.user", | |
"**.vspscc" | |
] | |
} |
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.Linq; | |
using Microsoft.AspNet.Builder; | |
using Microsoft.AspNet.Hosting; | |
using Microsoft.AspNet.Mvc; | |
using Microsoft.Framework.DependencyInjection; | |
using Newtonsoft.Json.Serialization; | |
namespace MyNamespace.Controllers | |
{ | |
public class Startup | |
{ | |
public Startup(IHostingEnvironment env) | |
{ | |
} | |
// This method gets called by a runtime. | |
// Use this method to add services to the container | |
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddMvc(); | |
services.ConfigureMvc(options => | |
{ | |
(options.OutputFormatters.First(f => f.Instance is JsonOutputFormatter).Instance as | |
JsonOutputFormatter).SerializerSettings.ContractResolver = | |
new CamelCasePropertyNamesContractResolver(); | |
}); | |
} | |
// Configure is called after ConfigureServices is called. | |
public void Configure(IApplicationBuilder app, IHostingEnvironment env) | |
{ | |
// Add MVC to the request pipeline. | |
app.UseMvc(); | |
} | |
} | |
} |
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.Collections.Generic; | |
using Microsoft.AspNet.Mvc; | |
// For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 | |
namespace MyNamespace.Controllers | |
{ | |
[Route("api/[controller]")] | |
public class ValuesController : Controller | |
{ | |
// GET: api/values | |
[HttpGet] | |
public IEnumerable<string> Get() | |
{ | |
return new string[] { "value1", "value2" }; | |
} | |
// GET api/values/5 | |
[HttpGet("{id}")] | |
public string Get(int id) | |
{ | |
return "value"; | |
} | |
// POST api/values | |
[HttpPost] | |
public void Post([FromBody]string value) | |
{ | |
} | |
// PUT api/values/5 | |
[HttpPut("{id}")] | |
public void Put(int id, [FromBody]string value) | |
{ | |
} | |
// DELETE api/values/5 | |
[HttpDelete("{id}")] | |
public void Delete(int id) | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment