├── FrontEnd ├── src │ ├── assets │ │ └── .gitkeep │ ├── styles.css │ ├── app │ │ ├── charts │ │ │ ├── gaugeschart.component.html │ │ │ └── gaugeschart.component.ts │ │ ├── app.component.html │ │ ├── services │ │ │ ├── google-gauges-chart.service.ts │ │ │ └── google-charts.base.service.ts │ │ ├── app.component.css │ │ ├── app.module.ts │ │ └── app.component.ts │ ├── favicon.ico │ ├── typings.d.ts │ ├── environments │ │ ├── environment.prod.ts │ │ └── environment.ts │ ├── models │ │ └── gauge.ts │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ ├── main.ts │ ├── index.html │ ├── test.ts │ └── polyfills.ts ├── .vscode │ └── settings.json ├── e2e │ ├── app.po.ts │ ├── tsconfig.e2e.json │ └── app.e2e-spec.ts ├── .editorconfig ├── tsconfig.json ├── .gitignore ├── protractor.conf.js ├── karma.conf.js ├── README.md ├── .angular-cli.json ├── package.json └── tslint.json ├── BackEnd ├── Angular 5 et SignalR.pptx ├── SignalrCoreDemoWithSqlTableDependency │ ├── obj │ │ ├── Debug │ │ │ └── netcoreapp2.0 │ │ │ │ ├── SignalrCoreDemoWithSqlTableDependency.AssemblyInfoInputs.cache │ │ │ │ ├── SignalrCoreDemoWithSqlTableDependency.csproj.CoreCompileInputs.cache │ │ │ │ ├── SignalrCoreDemoWithSqlTableDependency.dll │ │ │ │ ├── SignalrCoreDemoWithSqlTableDependency.pdb │ │ │ │ ├── SignalrCoreDemoWithSqlTableDependency.csprojResolveAssemblyReference.cache │ │ │ │ ├── SignalrCoreDemoWithSqlTableDependency.AssemblyInfo.cs │ │ │ │ └── SignalrCoreDemoWithSqlTableDependency.csproj.FileListAbsolute.txt │ │ ├── Release │ │ │ └── netcoreapp2.0 │ │ │ │ ├── SignalrCoreDemoWithSqlTableDependency.AssemblyInfoInputs.cache │ │ │ │ ├── SignalrCoreDemoWithSqlTableDependency.csproj.CoreCompileInputs.cache │ │ │ │ └── SignalrCoreDemoWithSqlTableDependency.AssemblyInfo.cs │ │ ├── SignalrCoreDemoWithSqlTableDependency.csproj.nuget.cache │ │ ├── SignalrCoreDemoWithSqlTableDependency.csproj.nuget.g.props │ │ └── SignalrCoreDemoWithSqlTableDependency.csproj.nuget.g.targets │ ├── SqlTableDependencies │ │ ├── IDatabaseSubscription.cs │ │ └── GaugeDatabaseSubscription.cs │ ├── Repository │ │ ├── IGaugeRepository.cs │ │ └── GaugeRepository.cs │ ├── bin │ │ └── Debug │ │ │ └── netcoreapp2.0 │ │ │ ├── SignalrCoreDemoWithSqlTableDependency.dll │ │ │ ├── SignalrCoreDemoWithSqlTableDependency.pdb │ │ │ ├── SignalrCoreDemoWithSqlTableDependency.runtimeconfig.json │ │ │ └── SignalrCoreDemoWithSqlTableDependency.runtimeconfig.dev.json │ ├── EF │ │ └── GaugesContext.cs │ ├── Program.cs │ ├── Hubs │ │ └── GaugeHub.cs │ ├── Models │ │ └── Gauge.cs │ ├── UseSqlTableDependency.cs │ ├── Properties │ │ └── launchSettings.json │ ├── AddDbContextFactory.cs │ ├── SignalrCoreDemoWithSqlTableDependency.csproj │ ├── EndPoints │ │ └── MessagesEndPoint.cs │ └── Startup.cs ├── .vs │ └── SignalrCoreDemoWithSqlTableDependency │ │ └── v15 │ │ ├── .suo │ │ ├── sqlite3 │ │ └── storage.ide │ │ └── Server │ │ └── sqlite3 │ │ └── storage.ide ├── SignalrCoreDemoWithSqlTableDependency.sln.DotSettings.user └── SignalrCoreDemoWithSqlTableDependency.sln ├── .gitignore └── README.md /FrontEnd/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /FrontEnd/src/styles.css: -------------------------------------------------------------------------------- 1 | /* You can add global styles to this file, and also import other style files */ 2 | -------------------------------------------------------------------------------- /FrontEnd/src/app/charts/gaugeschart.component.html: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /FrontEnd/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyGiretti/Angular5-RealTime-gauges-with-SignalR-Core-EFCore2/HEAD/FrontEnd/src/favicon.ico -------------------------------------------------------------------------------- /FrontEnd/src/typings.d.ts: -------------------------------------------------------------------------------- 1 | /* SystemJS module definition */ 2 | declare var module: NodeModule; 3 | interface NodeModule { 4 | id: string; 5 | } 6 | -------------------------------------------------------------------------------- /FrontEnd/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true, 3 | hubUrl: "http://localhost:33383/gauges" 4 | }; 5 | -------------------------------------------------------------------------------- /BackEnd/Angular 5 et SignalR.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyGiretti/Angular5-RealTime-gauges-with-SignalR-Core-EFCore2/HEAD/BackEnd/Angular 5 et SignalR.pptx -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | ce6acec9c0b79c6169db18d9e6e633cb45288ac2 2 | -------------------------------------------------------------------------------- /FrontEnd/src/models/gauge.ts: -------------------------------------------------------------------------------- 1 | export class GaugeModel { 2 | public id: number; 3 | public cpu: number; 4 | public memory: number; 5 | public network: number; 6 | } -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 9538277ffdec1062619ce1a2fb6697bca5a43bab 2 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Release/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 39e51ffdcd2231481849a2c3ec5b89d931cd4271 2 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Release/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 8a87a9902b4918464e7a5a9fcb2d546a8239ffc0 2 | -------------------------------------------------------------------------------- /BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyGiretti/Angular5-RealTime-gauges-with-SignalR-Core-EFCore2/HEAD/BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/.suo -------------------------------------------------------------------------------- /BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/sqlite3/storage.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyGiretti/Angular5-RealTime-gauges-with-SignalR-Core-EFCore2/HEAD/BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/sqlite3/storage.ide -------------------------------------------------------------------------------- /FrontEnd/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "codemetrics.basics.ComplexityLevelNormal": 7, 3 | "codemetrics.basics.CodeLensHiddenUnder": 1, 4 | "codemetrics.basics.ComplexityLevelExtreme": 15, 5 | "codemetrics.basics.ComplexityLevelLow": 1 6 | } -------------------------------------------------------------------------------- /BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/Server/sqlite3/storage.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyGiretti/Angular5-RealTime-gauges-with-SignalR-Core-EFCore2/HEAD/BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/Server/sqlite3/storage.ide -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/SignalrCoreDemoWithSqlTableDependency.csproj.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "dgSpecHash": "YTRBLk9SkWdHNp5xI+13WZaKwA3Z4Jps7aIbWpArZNChC5nfdyxPCJQ7lStM6h+JLqaMcCKQFDpBODxLsWJRNw==", 4 | "success": true 5 | } -------------------------------------------------------------------------------- /FrontEnd/e2e/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getParagraphText() { 9 | return element(by.css('app-root h1')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/SqlTableDependencies/IDatabaseSubscription.cs: -------------------------------------------------------------------------------- 1 | namespace SignalrCoreDemoWithSqlTableDependency.SqlTableDependencies 2 | { 3 | public interface IDatabaseSubscription 4 | { 5 | void Configure(string connectionString); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /FrontEnd/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "./", 6 | "module": "es2015", 7 | "types": [] 8 | }, 9 | "exclude": [ 10 | "test.ts", 11 | "**/*.spec.ts" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/Repository/IGaugeRepository.cs: -------------------------------------------------------------------------------- 1 | using SignalrCoreDemoWithSqlTableDependency.Models; 2 | 3 | namespace SignalrCoreDemoWithSqlTableDependency.Repository 4 | { 5 | public interface IGaugeRepository 6 | { 7 | Gauge Gauge { get; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/bin/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyGiretti/Angular5-RealTime-gauges-with-SignalR-Core-EFCore2/HEAD/BackEnd/SignalrCoreDemoWithSqlTableDependency/bin/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.dll -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/bin/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyGiretti/Angular5-RealTime-gauges-with-SignalR-Core-EFCore2/HEAD/BackEnd/SignalrCoreDemoWithSqlTableDependency/bin/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.pdb -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyGiretti/Angular5-RealTime-gauges-with-SignalR-Core-EFCore2/HEAD/BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.dll -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyGiretti/Angular5-RealTime-gauges-with-SignalR-Core-EFCore2/HEAD/BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.pdb -------------------------------------------------------------------------------- /FrontEnd/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | max_line_length = off 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /FrontEnd/e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/e2e", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es5", 8 | "types": [ 9 | "jasmine", 10 | "jasminewd2", 11 | "node" 12 | ] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/bin/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp2.0", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "2.0.0" 7 | }, 8 | "configProperties": { 9 | "System.GC.Server": true 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnthonyGiretti/Angular5-RealTime-gauges-with-SignalR-Core-EFCore2/HEAD/BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/bin/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\Anthony.Giretti\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\Anthony.Giretti\\.nuget\\packages", 6 | "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder" 7 | ] 8 | } 9 | } -------------------------------------------------------------------------------- /FrontEnd/e2e/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { AppPage } from './app.po'; 2 | 3 | describe('angular5-signal-rcore-efcore2-google-charts App', () => { 4 | let page: AppPage; 5 | 6 | beforeEach(() => { 7 | page = new AppPage(); 8 | }); 9 | 10 | it('should display welcome message', () => { 11 | page.navigateTo(); 12 | expect(page.getParagraphText()).toEqual('Welcome to app!'); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /FrontEnd/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "target": "es5", 8 | "types": [ 9 | "jasmine", 10 | "node" 11 | ] 12 | }, 13 | "files": [ 14 | "test.ts" 15 | ], 16 | "include": [ 17 | "**/*.spec.ts", 18 | "**/*.d.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /FrontEnd/src/app/app.component.html: -------------------------------------------------------------------------------- 1 |

Real-Time Gaugeschart by Google with SignalR Core and EntityFramework Core 2 / SQLTableDependency

2 | 3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 11 | -------------------------------------------------------------------------------- /FrontEnd/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.log(err)); 13 | -------------------------------------------------------------------------------- /FrontEnd/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "sourceMap": true, 6 | "declaration": false, 7 | "moduleResolution": "node", 8 | "emitDecoratorMetadata": true, 9 | "experimentalDecorators": true, 10 | "target": "es5", 11 | "typeRoots": [ 12 | "node_modules/@types" 13 | ], 14 | "lib": [ 15 | "es2017", 16 | "dom" 17 | ] 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /FrontEnd/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Angular5SignalRCoreEFCore2GoogleCharts 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/EF/GaugesContext.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using SignalrCoreDemoWithSqlTableDependency.Models; 3 | 4 | namespace SignalrCoreDemoWithSqlTableDependency.EF 5 | { 6 | public class GaugeContext : DbContext 7 | { 8 | public GaugeContext(DbContextOptions options) 9 | : base(options) 10 | { 11 | } 12 | 13 | public virtual DbSet Gauges { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /FrontEnd/src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // The file contents for the current environment will overwrite these during build. 2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do 3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead. 4 | // The list of which env maps to which file can be found in `.angular-cli.json`. 5 | 6 | export const environment = { 7 | production: false, 8 | hubUrl: "http://localhost:33383/gauges" 9 | }; 10 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/Program.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore; 2 | using Microsoft.AspNetCore.Hosting; 3 | 4 | namespace SignalrCoreDemoWithSqlTableDependency 5 | { 6 | public class Program 7 | { 8 | public static void Main(string[] args) 9 | { 10 | BuildWebHost(args).Run(); 11 | } 12 | 13 | public static IWebHost BuildWebHost(string[] args) => 14 | WebHost.CreateDefaultBuilder(args) 15 | .UseStartup() 16 | .Build(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /FrontEnd/src/app/services/google-gauges-chart.service.ts: -------------------------------------------------------------------------------- 1 | import { GoogleChartsBaseService } from './google-charts.base.service'; 2 | import { Injectable } from '@angular/core'; 3 | 4 | declare var google: any; 5 | 6 | @Injectable() 7 | export class GoogleGaugesChartService extends GoogleChartsBaseService { 8 | 9 | constructor() { super(); } 10 | 11 | public BuildGaugesChart(elementId: String, data: any[], config: any) : void { 12 | var chartFunc = () => { return new google.visualization.Gauge(document.getElementById(elementId)); }; 13 | this.buildChart(data, chartFunc, config); 14 | } 15 | } -------------------------------------------------------------------------------- /FrontEnd/src/app/services/google-charts.base.service.ts: -------------------------------------------------------------------------------- 1 | declare var google: any; 2 | 3 | export class GoogleChartsBaseService { 4 | constructor() { 5 | google.charts.load('current', {'packages':['corechart','gauge']}); 6 | } 7 | 8 | protected buildChart(data: any[], chartFunc: any, options: any) : void { 9 | var func = (chartFunc, options) => { 10 | var datatable = google.visualization.arrayToDataTable(data); 11 | chartFunc().draw(datatable, options); 12 | }; 13 | var callback = () => func(chartFunc, options); 14 | google.charts.setOnLoadCallback(callback); 15 | } 16 | 17 | } -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency.sln.DotSettings.user: -------------------------------------------------------------------------------- 1 | 2 | <AssemblyExplorer> 3 | <Assembly Path="C:\Users\Anthony.Giretti\.nuget\packages\sqltabledependency\6.1.0\lib\TableDependency.SqlClient.dll" /> 4 | </AssemblyExplorer> -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/Hubs/GaugeHub.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.SignalR; 2 | using SignalrCoreDemoWithSqlTableDependency.Repository; 3 | using System.Threading.Tasks; 4 | 5 | namespace SignalrCoreDemoWithSqlTableDependency.Hubs 6 | { 7 | public class GaugeHub : Hub 8 | { 9 | private readonly IGaugeRepository _repository; 10 | 11 | public GaugeHub(IGaugeRepository repository) 12 | { 13 | _repository = repository; 14 | } 15 | 16 | public async Task GetGaugesData() 17 | { 18 | await Clients.All.InvokeAsync("GetGaugesData", _repository.Gauge); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/Models/Gauge.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System.ComponentModel.DataAnnotations; 3 | using System.ComponentModel.DataAnnotations.Schema; 4 | 5 | namespace SignalrCoreDemoWithSqlTableDependency.Models 6 | { 7 | [Table("GaugesData")] 8 | public class Gauge 9 | { 10 | [JsonProperty("id")] 11 | [Key] 12 | public int Id { get; set; } 13 | 14 | [JsonProperty("memory")] 15 | public int Memory { get; set; } 16 | 17 | [JsonProperty("cpu")] 18 | public int Cpu { get; set; } 19 | 20 | [JsonProperty("network")] 21 | public int Network { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /FrontEnd/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | /* DivTable.com */ 2 | .divTable{ 3 | display: table; 4 | width: 100%; 5 | } 6 | .divTableRow { 7 | display: table-row; 8 | } 9 | .divTableHeading { 10 | background-color: #EEE; 11 | display: table-header-group; 12 | } 13 | .divTableCell, .divTableHead { 14 | border: 1px solid #999999; 15 | display: table-cell; 16 | padding: 3px 10px; 17 | text-align: center; 18 | margin: auto; 19 | } 20 | .divTableHeading { 21 | background-color: #EEE; 22 | display: table-header-group; 23 | font-weight: bold; 24 | } 25 | .divTableFoot { 26 | background-color: #EEE; 27 | display: table-footer-group; 28 | font-weight: bold; 29 | } 30 | .divTableBody { 31 | display: table-row-group; 32 | } -------------------------------------------------------------------------------- /FrontEnd/src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { AppComponent } from './app.component'; 2 | import { BrowserModule } from '@angular/platform-browser'; 3 | import { GaugesChartComponent } from './charts/gaugeschart.component'; 4 | import { GoogleChartsBaseService } from './services/google-charts.base.service'; 5 | import { GoogleGaugesChartService } from './services/google-gauges-chart.service'; 6 | import { NgModule } from '@angular/core'; 7 | 8 | @NgModule({ 9 | declarations: [ 10 | AppComponent, 11 | GaugesChartComponent 12 | ], 13 | imports: [ 14 | BrowserModule 15 | ], 16 | providers: [GoogleChartsBaseService,GoogleGaugesChartService], 17 | bootstrap: [AppComponent] 18 | }) 19 | export class AppModule { } 20 | -------------------------------------------------------------------------------- /FrontEnd/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | 8 | # dependencies 9 | /node_modules 10 | 11 | # IDEs and editors 12 | /.idea 13 | .project 14 | .classpath 15 | .c9/ 16 | *.launch 17 | .settings/ 18 | *.sublime-workspace 19 | 20 | # IDE - VSCode 21 | .vscode/* 22 | !.vscode/settings.json 23 | !.vscode/tasks.json 24 | !.vscode/launch.json 25 | !.vscode/extensions.json 26 | /.vs 27 | 28 | # misc 29 | /.sass-cache 30 | /connect.lock 31 | /coverage 32 | /libpeerconnection.log 33 | npm-debug.log 34 | testem.log 35 | /typings 36 | 37 | # e2e 38 | /e2e/*.js 39 | /e2e/*.map 40 | 41 | # System Files 42 | .DS_Store 43 | Thumbs.db 44 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/UseSqlTableDependency.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Builder; 2 | using Microsoft.Extensions.DependencyInjection; 3 | using SignalrCoreDemoWithSqlTableDependency.SqlTableDependencies; 4 | 5 | namespace SignalrCoreDemoWithSqlTableDependency 6 | { 7 | public static class UseSqlTableDependencyHelpers 8 | { 9 | public static void UseSqlTableDependency(this IApplicationBuilder services, string connectionString) where T : IDatabaseSubscription 10 | { 11 | var serviceProvider = services.ApplicationServices; 12 | var subscription = serviceProvider.GetService(); 13 | subscription.Configure(connectionString); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:33383/", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "environmentVariables": { 15 | "ASPNETCORE_ENVIRONMENT": "Development" 16 | } 17 | }, 18 | "SignalrCoreDemoWithSqlTableDependency": { 19 | "commandName": "Project", 20 | "launchBrowser": true, 21 | "environmentVariables": { 22 | "ASPNETCORE_ENVIRONMENT": "Development" 23 | }, 24 | "applicationUrl": "http://localhost:33384/" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/Repository/GaugeRepository.cs: -------------------------------------------------------------------------------- 1 | using SignalrCoreDemoWithSqlTableDependency.EF; 2 | using SignalrCoreDemoWithSqlTableDependency.Models; 3 | using System; 4 | using System.Linq; 5 | 6 | namespace SignalrCoreDemoWithSqlTableDependency.Repository 7 | { 8 | public class GaugeRepository : IGaugeRepository 9 | { 10 | private readonly Func _contextFactory; 11 | 12 | public Gauge Gauge => GetGauge(); 13 | 14 | public GaugeRepository(Func context) 15 | { 16 | _contextFactory = context; 17 | } 18 | 19 | private Gauge GetGauge() 20 | { 21 | using (var context = _contextFactory.Invoke()) 22 | { 23 | return context.Gauges.FirstOrDefault(); 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /FrontEnd/protractor.conf.js: -------------------------------------------------------------------------------- 1 | // Protractor configuration file, see link for more information 2 | // https://github.com/angular/protractor/blob/master/lib/config.ts 3 | 4 | const { SpecReporter } = require('jasmine-spec-reporter'); 5 | 6 | exports.config = { 7 | allScriptsTimeout: 11000, 8 | specs: [ 9 | './e2e/**/*.e2e-spec.ts' 10 | ], 11 | capabilities: { 12 | 'browserName': 'chrome' 13 | }, 14 | directConnect: true, 15 | baseUrl: 'http://localhost:4200/', 16 | framework: 'jasmine', 17 | jasmineNodeOpts: { 18 | showColors: true, 19 | defaultTimeoutInterval: 30000, 20 | print: function() {} 21 | }, 22 | onPrepare() { 23 | require('ts-node').register({ 24 | project: 'e2e/tsconfig.e2e.json' 25 | }); 26 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/AddDbContextFactory.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | using Microsoft.Extensions.DependencyInjection; 3 | using System; 4 | 5 | namespace SignalrCoreDemoWithSqlTableDependency 6 | { 7 | public static class AddDbContextFactoryHelper 8 | { 9 | public static void AddDbContextFactory(this IServiceCollection services, string connectionString) where TDataContext : DbContext 10 | { 11 | services.AddSingleton>((ctx) => 12 | { 13 | var options = new DbContextOptionsBuilder() 14 | .UseSqlServer(connectionString) 15 | .Options; 16 | 17 | return () => (TDataContext)Activator.CreateInstance(typeof(TDataContext), options); 18 | }); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/SignalrCoreDemoWithSqlTableDependency.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /FrontEnd/karma.conf.js: -------------------------------------------------------------------------------- 1 | // Karma configuration file, see link for more information 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html 3 | 4 | module.exports = function (config) { 5 | config.set({ 6 | basePath: '', 7 | frameworks: ['jasmine', '@angular/cli'], 8 | plugins: [ 9 | require('karma-jasmine'), 10 | require('karma-chrome-launcher'), 11 | require('karma-jasmine-html-reporter'), 12 | require('karma-coverage-istanbul-reporter'), 13 | require('@angular/cli/plugins/karma') 14 | ], 15 | client:{ 16 | clearContext: false // leave Jasmine Spec Runner output visible in browser 17 | }, 18 | coverageIstanbulReporter: { 19 | reports: [ 'html', 'lcovonly' ], 20 | fixWebpackSourcePaths: true 21 | }, 22 | angularCli: { 23 | environment: 'dev' 24 | }, 25 | reporters: ['progress', 'kjhtml'], 26 | port: 9876, 27 | colors: true, 28 | logLevel: config.LOG_INFO, 29 | autoWatch: true, 30 | browsers: ['Chrome'], 31 | singleRun: false 32 | }); 33 | }; 34 | -------------------------------------------------------------------------------- /FrontEnd/src/app/charts/gaugeschart.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, Input, OnInit } from '@angular/core'; 2 | 3 | import { GoogleGaugesChartService } from '../services/google-gauges-chart.service'; 4 | import { OnChanges } from '@angular/core/src/metadata/lifecycle_hooks'; 5 | 6 | declare var google: any; 7 | 8 | 9 | @Component({ 10 | selector: 'gauges-chart', 11 | templateUrl: './gaugeschart.component.html' 12 | }) 13 | export class GaugesChartComponent implements OnInit, OnChanges { 14 | 15 | @Input() data: any[]; 16 | @Input() config: any; 17 | @Input() elementId: String; 18 | 19 | constructor(private _gaugesChartService: GoogleGaugesChartService) {} 20 | 21 | /* Only chart data !!!!!!! */ 22 | ngOnChanges(changes) { 23 | if (changes.data != undefined) { 24 | this.data = changes.data.currentValue; 25 | this._gaugesChartService.BuildGaugesChart(this.elementId, this.data, this.config); 26 | } 27 | } 28 | 29 | ngOnInit(): void { 30 | this._gaugesChartService.BuildGaugesChart(this.elementId, this.data, this.config); 31 | } 32 | } -------------------------------------------------------------------------------- /FrontEnd/README.md: -------------------------------------------------------------------------------- 1 | # Angular5SignalRCoreEFCore2GoogleCharts 2 | 3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.6.3. 4 | 5 | ## Development server 6 | 7 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. 8 | 9 | ## Code scaffolding 10 | 11 | Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. 12 | 13 | ## Build 14 | 15 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. 16 | 17 | ## Running unit tests 18 | 19 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). 20 | 21 | ## Running end-to-end tests 22 | 23 | Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). 24 | 25 | ## Further help 26 | 27 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). 28 | -------------------------------------------------------------------------------- /FrontEnd/src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/long-stack-trace-zone'; 4 | import 'zone.js/dist/proxy.js'; 5 | import 'zone.js/dist/sync-test'; 6 | import 'zone.js/dist/jasmine-patch'; 7 | import 'zone.js/dist/async-test'; 8 | import 'zone.js/dist/fake-async-test'; 9 | import { getTestBed } from '@angular/core/testing'; 10 | import { 11 | BrowserDynamicTestingModule, 12 | platformBrowserDynamicTesting 13 | } from '@angular/platform-browser-dynamic/testing'; 14 | 15 | // Unfortunately there's no typing for the `__karma__` variable. Just declare it as any. 16 | declare const __karma__: any; 17 | declare const require: any; 18 | 19 | // Prevent Karma from running prematurely. 20 | __karma__.loaded = function () {}; 21 | 22 | // First, initialize the Angular testing environment. 23 | getTestBed().initTestEnvironment( 24 | BrowserDynamicTestingModule, 25 | platformBrowserDynamicTesting() 26 | ); 27 | // Then we find all the tests. 28 | const context = require.context('./', true, /\.spec\.ts$/); 29 | // And load the modules. 30 | context.keys().map(context); 31 | // Finally, start Karma to run the tests. 32 | __karma__.start(); 33 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("SignalrCoreDemoWithSqlTableDependency")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")] 17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 19 | [assembly: System.Reflection.AssemblyProductAttribute("SignalrCoreDemoWithSqlTableDependency")] 20 | [assembly: System.Reflection.AssemblyTitleAttribute("SignalrCoreDemoWithSqlTableDependency")] 21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 22 | 23 | // Generated by the MSBuild WriteCodeFragment class. 24 | 25 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Release/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("SignalrCoreDemoWithSqlTableDependency")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] 16 | [assembly: System.Reflection.AssemblyDescriptionAttribute("Package Description")] 17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 19 | [assembly: System.Reflection.AssemblyProductAttribute("SignalrCoreDemoWithSqlTableDependency")] 20 | [assembly: System.Reflection.AssemblyTitleAttribute("SignalrCoreDemoWithSqlTableDependency")] 21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 22 | 23 | // Generated by the MSBuild WriteCodeFragment class. 24 | 25 | -------------------------------------------------------------------------------- /FrontEnd/.angular-cli.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 | "project": { 4 | "name": "angular5-signal-rcore-efcore2-google-charts" 5 | }, 6 | "apps": [ 7 | { 8 | "root": "src", 9 | "outDir": "dist", 10 | "assets": [ 11 | "assets", 12 | "favicon.ico" 13 | ], 14 | "index": "index.html", 15 | "main": "main.ts", 16 | "polyfills": "polyfills.ts", 17 | "test": "test.ts", 18 | "tsconfig": "tsconfig.app.json", 19 | "testTsconfig": "tsconfig.spec.json", 20 | "prefix": "app", 21 | "styles": [ 22 | "styles.css" 23 | ], 24 | "scripts": [], 25 | "environmentSource": "environments/environment.ts", 26 | "environments": { 27 | "dev": "environments/environment.ts", 28 | "prod": "environments/environment.prod.ts" 29 | } 30 | } 31 | ], 32 | "e2e": { 33 | "protractor": { 34 | "config": "./protractor.conf.js" 35 | } 36 | }, 37 | "lint": [ 38 | { 39 | "project": "src/tsconfig.app.json", 40 | "exclude": "**/node_modules/**" 41 | }, 42 | { 43 | "project": "src/tsconfig.spec.json", 44 | "exclude": "**/node_modules/**" 45 | }, 46 | { 47 | "project": "e2e/tsconfig.e2e.json", 48 | "exclude": "**/node_modules/**" 49 | } 50 | ], 51 | "test": { 52 | "karma": { 53 | "config": "./karma.conf.js" 54 | } 55 | }, 56 | "defaults": { 57 | "styleExt": "css", 58 | "component": {} 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # compiled output 4 | /dist 5 | /tmp 6 | /out-tsc 7 | 8 | # dependencies 9 | /node_modules 10 | 11 | # IDEs and editors 12 | /.idea 13 | .project 14 | .classpath 15 | .c9/ 16 | *.launch 17 | .settings/ 18 | *.sublime-workspace 19 | 20 | # IDE - VSCode 21 | .vscode/* 22 | !.vscode/settings.json 23 | !.vscode/tasks.json 24 | !.vscode/launch.json 25 | !.vscode/extensions.json 26 | /.vs 27 | 28 | # misc 29 | /.sass-cache 30 | /connect.lock 31 | /coverage 32 | /libpeerconnection.log 33 | npm-debug.log 34 | testem.log 35 | /typings 36 | 37 | # e2e 38 | /e2e/*.js 39 | /e2e/*.map 40 | 41 | # System Files 42 | .DS_Store 43 | Thumbs.db 44 | BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/Server/sqlite3/db.lock 45 | BackEnd/.vs/config/applicationhost.config 46 | BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/.suo 47 | BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/Server/sqlite3/storage.ide 48 | BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/Server/sqlite3/storage.ide-shm 49 | BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/Server/sqlite3/storage.ide-wal 50 | BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/Server/sqlite3/storage.ide-shm 51 | BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/Server/sqlite3/db.lock 52 | BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/Server/sqlite3/storage.ide 53 | BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/Server/sqlite3/storage.ide-wal 54 | BackEnd/.vs/SignalrCoreDemoWithSqlTableDependency/v15/.suo 55 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.26730.15 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SignalrCoreDemoWithSqlTableDependency", "SignalrCoreDemoWithSqlTableDependency\SignalrCoreDemoWithSqlTableDependency.csproj", "{13860E34-6220-4593-8511-212730C2C3A0}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Items", "Items", "{25E98F73-F974-4866-8C67-1D42A4DFD708}" 9 | ProjectSection(SolutionItems) = preProject 10 | Angular 5 et SignalR.pptx = Angular 5 et SignalR.pptx 11 | EndProjectSection 12 | EndProject 13 | Global 14 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 15 | Debug|Any CPU = Debug|Any CPU 16 | Release|Any CPU = Release|Any CPU 17 | EndGlobalSection 18 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 19 | {13860E34-6220-4593-8511-212730C2C3A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 20 | {13860E34-6220-4593-8511-212730C2C3A0}.Debug|Any CPU.Build.0 = Debug|Any CPU 21 | {13860E34-6220-4593-8511-212730C2C3A0}.Release|Any CPU.ActiveCfg = Release|Any CPU 22 | {13860E34-6220-4593-8511-212730C2C3A0}.Release|Any CPU.Build.0 = Release|Any CPU 23 | EndGlobalSection 24 | GlobalSection(SolutionProperties) = preSolution 25 | HideSolutionNode = FALSE 26 | EndGlobalSection 27 | GlobalSection(ExtensibilityGlobals) = postSolution 28 | SolutionGuid = {FEFC1D50-4825-4C1E-8EE7-BCE069AC9033} 29 | EndGlobalSection 30 | EndGlobal 31 | -------------------------------------------------------------------------------- /FrontEnd/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular5-signal-rcore-efcore2-google-charts", 3 | "version": "0.0.0", 4 | "license": "MIT", 5 | "scripts": { 6 | "ng": "ng", 7 | "start": "ng serve", 8 | "build": "ng build --prod", 9 | "test": "ng test", 10 | "lint": "ng lint", 11 | "e2e": "ng e2e" 12 | }, 13 | "private": true, 14 | "dependencies": { 15 | "@angular/animations": "^5.0.0", 16 | "@angular/common": "^5.0.0", 17 | "@angular/compiler": "^5.0.0", 18 | "@angular/core": "^5.0.0", 19 | "@angular/forms": "^5.0.0", 20 | "@angular/http": "^5.0.0", 21 | "@angular/platform-browser": "^5.0.0", 22 | "@angular/platform-browser-dynamic": "^5.0.0", 23 | "@angular/router": "^5.0.0", 24 | "@aspnet/signalr-client": "^1.0.0-alpha2-final", 25 | "core-js": "^2.4.1", 26 | "rxjs": "^5.5.2", 27 | "zone.js": "^0.8.14" 28 | }, 29 | "devDependencies": { 30 | "@angular/cli": "1.6.3", 31 | "@angular/compiler-cli": "^5.0.0", 32 | "@angular/language-service": "^5.0.0", 33 | "@types/jasmine": "~2.5.53", 34 | "@types/jasminewd2": "~2.0.2", 35 | "@types/node": "~6.0.60", 36 | "codelyzer": "^4.0.1", 37 | "jasmine-core": "~2.6.2", 38 | "jasmine-spec-reporter": "~4.1.0", 39 | "karma": "~1.7.0", 40 | "karma-chrome-launcher": "~2.1.1", 41 | "karma-cli": "~1.0.1", 42 | "karma-coverage-istanbul-reporter": "^1.2.1", 43 | "karma-jasmine": "~1.1.0", 44 | "karma-jasmine-html-reporter": "^0.2.2", 45 | "protractor": "~5.1.2", 46 | "ts-node": "~3.2.0", 47 | "tslint": "~5.7.0", 48 | "typescript": "~2.4.2" 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /FrontEnd/src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { AfterContentInit, AfterViewInit, Component, OnInit } from '@angular/core'; 2 | 3 | import { environment as Environment } from '../environments/environment'; 4 | import { GaugeModel } from '../models/gauge'; 5 | import { HubConnection } from '@aspnet/signalr-client'; 6 | 7 | declare var google: any; 8 | 9 | @Component({ 10 | selector: 'app-root', 11 | templateUrl: './app.component.html', 12 | styleUrls: ['./app.component.css'] 13 | }) 14 | export class AppComponent implements OnInit { 15 | 16 | private _hubConnection: HubConnection; 17 | 18 | public data:any[] = [ 19 | ['Label', 'Value'], 20 | ['Memory', 0], 21 | ['CPU', 0], 22 | ['Network', 0] 23 | ]; 24 | public elementId:String = "Gauge1"; 25 | public config:any = { 26 | width: 400, height: 120, 27 | redFrom: 90, redTo: 100, 28 | yellowFrom:75, yellowTo: 90, 29 | minorTicks: 5 30 | }; 31 | 32 | 33 | constructor() { 34 | } 35 | 36 | public ngOnInit() { 37 | 38 | this._hubConnection = new HubConnection(Environment.hubUrl); 39 | 40 | this._hubConnection 41 | .start() 42 | .then(() => this._hubConnection.invoke('GetGaugesData').catch(err => console.error(err))) 43 | .catch(err => console.log('Error while establishing connection :(')); 44 | 45 | var that = this; 46 | this._hubConnection.on('GetGaugesData', (data: GaugeModel) => { 47 | this.data = [ 48 | ['Label', 'Value'], 49 | ['Memory', data.memory], 50 | ['CPU', data.cpu], 51 | ['Network', data.network] 52 | ]; 53 | }); 54 | 55 | } 56 | 57 | } -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/SignalrCoreDemoWithSqlTableDependency.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | True 5 | NuGet 6 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\Anthony.Giretti\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder 9 | PackageReference 10 | 4.3.1 11 | 12 | 13 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/EndPoints/MessagesEndPoint.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Sockets; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace SignalRCore.Web.EndPoints 9 | { 10 | public class MessagesEndPoint : EndPoint 11 | { 12 | public ConnectionList Connections { get; } = new ConnectionList(); 13 | 14 | public override async Task OnConnectedAsync(ConnectionContext connection) 15 | { 16 | Connections.Add(connection); 17 | await Broadcast($"{connection.ConnectionId} connected ({connection.Metadata[ConnectionMetadataNames.Transport]})"); 18 | 19 | try 20 | { 21 | while (await connection.Transport.In.WaitToReadAsync()) 22 | { 23 | if (connection.Transport.In.TryRead(out var message)) 24 | { 25 | var text = Encoding.UTF8.GetString(message); 26 | text = $"{connection.ConnectionId}: {text}"; 27 | await Broadcast(text); 28 | } 29 | } 30 | } 31 | finally 32 | { 33 | Connections.Remove(connection); 34 | await Broadcast($"{connection.ConnectionId} disconnected ({connection.Metadata[ConnectionMetadataNames.Transport]})"); 35 | } 36 | } 37 | 38 | private Task Broadcast(string text) 39 | { 40 | return Broadcast(Encoding.UTF8.GetBytes(text)); 41 | } 42 | 43 | private Task Broadcast(byte[] payload) 44 | { 45 | var tasks = new List(Connections.Count); 46 | foreach (var c in Connections) 47 | { 48 | tasks.Add(c.Transport.Out.WriteAsync(payload)); 49 | } 50 | 51 | return Task.WhenAll(tasks); 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/SignalrCoreDemoWithSqlTableDependency.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/SqlTableDependencies/GaugeDatabaseSubscription.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.SignalR; 2 | using SignalrCoreDemoWithSqlTableDependency.Hubs; 3 | using SignalrCoreDemoWithSqlTableDependency.Models; 4 | using SignalrCoreDemoWithSqlTableDependency.Repository; 5 | using System; 6 | using TableDependency.Enums; 7 | using TableDependency.EventArgs; 8 | using TableDependency.SqlClient; 9 | 10 | namespace SignalrCoreDemoWithSqlTableDependency.SqlTableDependencies 11 | { 12 | public class GaugeDatabaseSubscription : IDatabaseSubscription 13 | { 14 | private bool _disposedValue; 15 | private readonly IGaugeRepository _repository; 16 | private readonly IHubContext _hubContext; 17 | private SqlTableDependency _tableDependency; 18 | 19 | public GaugeDatabaseSubscription(IGaugeRepository repository, IHubContext hubContext) 20 | { 21 | _repository = repository; 22 | _hubContext = hubContext; 23 | } 24 | 25 | public void Configure(string connectionString) 26 | { 27 | _tableDependency = new SqlTableDependency(connectionString); 28 | _tableDependency.OnChanged += Changed; 29 | _tableDependency.OnError += TableDependency_OnError; 30 | _tableDependency.Start(); 31 | 32 | Console.WriteLine("Waiting for receiving notifications..."); 33 | } 34 | 35 | private void TableDependency_OnError(object sender, ErrorEventArgs e) 36 | { 37 | Console.WriteLine($"SqlTableDependency error: {e.Error.Message}"); 38 | } 39 | 40 | private void Changed(object sender, RecordChangedEventArgs e) 41 | { 42 | if (e.ChangeType != ChangeType.None) 43 | { 44 | _hubContext.Clients.All.InvokeAsync("GetGaugesData", _repository.Gauge); 45 | } 46 | } 47 | 48 | #region IDisposable 49 | 50 | ~GaugeDatabaseSubscription() 51 | { 52 | Dispose(false); 53 | } 54 | 55 | protected virtual void Dispose(bool disposing) 56 | { 57 | if (!_disposedValue) 58 | { 59 | if (disposing) 60 | { 61 | _tableDependency.Stop(); 62 | } 63 | 64 | _disposedValue = true; 65 | } 66 | } 67 | 68 | public void Dispose() 69 | { 70 | Dispose(true); 71 | GC.SuppressFinalize(this); 72 | } 73 | 74 | #endregion 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /FrontEnd/src/polyfills.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file includes polyfills needed by Angular and is loaded before the app. 3 | * You can add your own extra polyfills to this file. 4 | * 5 | * This file is divided into 2 sections: 6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. 7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main 8 | * file. 9 | * 10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that 11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), 12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. 13 | * 14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html 15 | */ 16 | 17 | /*************************************************************************************************** 18 | * BROWSER POLYFILLS 19 | */ 20 | 21 | /** IE9, IE10 and IE11 requires all of the following polyfills. **/ 22 | // import 'core-js/es6/symbol'; 23 | // import 'core-js/es6/object'; 24 | // import 'core-js/es6/function'; 25 | // import 'core-js/es6/parse-int'; 26 | // import 'core-js/es6/parse-float'; 27 | // import 'core-js/es6/number'; 28 | // import 'core-js/es6/math'; 29 | // import 'core-js/es6/string'; 30 | // import 'core-js/es6/date'; 31 | // import 'core-js/es6/array'; 32 | // import 'core-js/es6/regexp'; 33 | // import 'core-js/es6/map'; 34 | // import 'core-js/es6/weak-map'; 35 | // import 'core-js/es6/set'; 36 | 37 | /** IE10 and IE11 requires the following for NgClass support on SVG elements */ 38 | // import 'classlist.js'; // Run `npm install --save classlist.js`. 39 | 40 | /** IE10 and IE11 requires the following for the Reflect API. */ 41 | // import 'core-js/es6/reflect'; 42 | 43 | 44 | /** Evergreen browsers require these. **/ 45 | // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. 46 | import 'core-js/es7/reflect'; 47 | 48 | 49 | /** 50 | * Required to support Web Animations `@angular/platform-browser/animations`. 51 | * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation 52 | **/ 53 | // import 'web-animations-js'; // Run `npm install --save web-animations-js`. 54 | 55 | 56 | 57 | /*************************************************************************************************** 58 | * Zone JS is required by default for Angular itself. 59 | */ 60 | import 'zone.js/dist/zone'; // Included with Angular CLI. 61 | 62 | 63 | 64 | /*************************************************************************************************** 65 | * APPLICATION IMPORTS 66 | */ 67 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Angular5-RealTime-gauges-with-SignalR-Core-EFCore2 2 | 3 | ![Example](http://anthonygiretti.com/wp-content/uploads/2017/12/demoanimated.gif) 4 | 5 | ## Setup SQL Database 6 | 7 | For an easy setup with SQL SERVER, I recommand to use LocalDB, installed automatically since Visual Studio 2012 8 | 9 | Use for example SQL Management Studio V12+ top type this serie of commands: 10 | 11 | ### Create Database 12 | ```CREATE DATABASE SignalRDemo;``` 13 | 14 | ### Create SQL table for the project 15 | ``` 16 | USE [SignalRDemo] 17 | GO 18 | 19 | /****** Object: Table [dbo].[GaugesData] Script Date: 2017-12-30 14:51:37 ******/ 20 | SET ANSI_NULLS ON 21 | GO 22 | 23 | SET QUOTED_IDENTIFIER ON 24 | GO 25 | 26 | CREATE TABLE [dbo].[GaugesData]( 27 | [Id] [int] NOT NULL, 28 | [Memory] [int] NOT NULL, 29 | [Cpu] [int] NOT NULL, 30 | [Network] [int] NOT NULL, 31 | CONSTRAINT [PK_GaugesData] PRIMARY KEY CLUSTERED 32 | ( 33 | [Id] ASC 34 | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] 35 | ) ON [PRIMARY] 36 | 37 | GO 38 | ``` 39 | 40 | ### Enable service broker 41 | ```ALTER DATABASE SignalRDemo SET ENABLE_BROKER with rollback immediate``` 42 | 43 | Then populate table with data (minimum 0, maximum 100) 44 | 45 | You may have some issues with service broker when you use Windows Authentification, notifications from database might not be fired, then use a SQL Server login / password authentification 46 | 47 | ## Setup Angular project 48 | 49 | ### Install Angular-CLI 1.6.3 or later 50 | 51 | ```npm install -g angular-cli@1.6.3``` 52 | 53 | ### Install the project 54 | 55 | Download the repository and install the project like this ```npm install``` 56 | 57 | ## Setup .NET Core project 58 | 59 | ### Requirements 60 | 61 | [Visual Studio 2017](https://www.visualstudio.com/downloads/) and [.Net Core 2](https://www.microsoft.com/net/download/windows) are required 62 | Download repository 63 | 64 | ### Install required Nuget Packages 65 | 66 | Microsoft.AspNetCore.SignalR ```Install-Package Microsoft.AspNetCore.SignalR -Version 1.0.0-alpha2-final``` 67 | Microsoft.EntityFrameworkCore ```Install-Package Microsoft.EntityFrameworkCore -Version 2.0.1``` 68 | Microsoft.EntityFrameworkCore.SqlServer ```Install-Package Microsoft.EntityFrameworkCore.SqlServer -Version 2.0.1``` 69 | SqlTableDependency ```Install-Package SqlTableDependency -Version 6.1.0``` 70 | 71 | ### Build and run 72 | In my solution (and in Agnular config) I use http://localhost:33383/ Url 73 | 74 | ## Informations 75 | This project uses [Google Charts](https://developers.google.com/chart/interactive/docs/gallery), especially Gauges charts. 76 | This project is fully reusable for any Google Charts. 77 | 78 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/Startup.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Builder; 2 | using Microsoft.AspNetCore.Hosting; 3 | using Microsoft.AspNetCore.Http; 4 | using Microsoft.AspNetCore.SignalR; 5 | using Microsoft.Extensions.DependencyInjection; 6 | using SignalrCoreDemoWithSqlTableDependency.EF; 7 | using SignalrCoreDemoWithSqlTableDependency.Hubs; 8 | using SignalrCoreDemoWithSqlTableDependency.Repository; 9 | using SignalrCoreDemoWithSqlTableDependency.SqlTableDependencies; 10 | 11 | namespace SignalrCoreDemoWithSqlTableDependency 12 | { 13 | public class Startup 14 | { 15 | private const string ConnectionString = @"Data Source=(LocalDb)\MSSQLLocalDB;Initial Catalog=SignalRDemo;User Id=demo;Password=demo;"; 16 | // This method gets called by the runtime. Use this method to add services to the container. 17 | // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 18 | public void ConfigureServices(IServiceCollection services) 19 | { 20 | services.AddMvc(); 21 | services.AddSignalR(); 22 | 23 | // dependency injection 24 | services.AddDbContextFactory(ConnectionString); 25 | services.AddSingleton(); 26 | services.AddSingleton(); 27 | services.AddSingleton, HubContext>(); 28 | 29 | services.AddCors(options => 30 | { 31 | options.AddPolicy("CorsPolicy", 32 | builder => builder.AllowAnyOrigin() 33 | .AllowAnyMethod() 34 | .AllowAnyHeader()); 35 | }); 36 | } 37 | 38 | // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. 39 | public void Configure(IApplicationBuilder app, IHostingEnvironment env) 40 | { 41 | if (env.IsDevelopment()) 42 | { 43 | app.UseDeveloperExceptionPage(); 44 | } 45 | else 46 | { 47 | app.UseExceptionHandler("/Home/Error"); 48 | } 49 | 50 | app.UseCors("CorsPolicy"); 51 | 52 | app.UseSignalR(routes => 53 | { 54 | routes.MapHub("gauges"); 55 | }); 56 | 57 | app.UseMvc(routes => 58 | { 59 | routes.MapRoute( 60 | name: "default", 61 | template: "{controller=Home}/{action=Index}/{id?}"); 62 | }); 63 | 64 | app.UseSqlTableDependency(ConnectionString); 65 | 66 | app.Run(async (context) => 67 | { 68 | await context.Response.WriteAsync("Hello World!"); 69 | }); 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /FrontEnd/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rulesDirectory": [ 3 | "node_modules/codelyzer" 4 | ], 5 | "rules": { 6 | "arrow-return-shorthand": true, 7 | "callable-types": true, 8 | "class-name": true, 9 | "comment-format": [ 10 | true, 11 | "check-space" 12 | ], 13 | "curly": true, 14 | "deprecation": { 15 | "severity": "warn" 16 | }, 17 | "eofline": true, 18 | "forin": true, 19 | "import-blacklist": [ 20 | true, 21 | "rxjs", 22 | "rxjs/Rx" 23 | ], 24 | "import-spacing": true, 25 | "indent": [ 26 | true, 27 | "spaces" 28 | ], 29 | "interface-over-type-literal": true, 30 | "label-position": true, 31 | "max-line-length": [ 32 | true, 33 | 140 34 | ], 35 | "member-access": false, 36 | "member-ordering": [ 37 | true, 38 | { 39 | "order": [ 40 | "static-field", 41 | "instance-field", 42 | "static-method", 43 | "instance-method" 44 | ] 45 | } 46 | ], 47 | "no-arg": true, 48 | "no-bitwise": true, 49 | "no-console": [ 50 | true, 51 | "debug", 52 | "info", 53 | "time", 54 | "timeEnd", 55 | "trace" 56 | ], 57 | "no-construct": true, 58 | "no-debugger": true, 59 | "no-duplicate-super": true, 60 | "no-empty": false, 61 | "no-empty-interface": true, 62 | "no-eval": true, 63 | "no-inferrable-types": [ 64 | true, 65 | "ignore-params" 66 | ], 67 | "no-misused-new": true, 68 | "no-non-null-assertion": true, 69 | "no-shadowed-variable": true, 70 | "no-string-literal": false, 71 | "no-string-throw": true, 72 | "no-switch-case-fall-through": true, 73 | "no-trailing-whitespace": true, 74 | "no-unnecessary-initializer": true, 75 | "no-unused-expression": true, 76 | "no-use-before-declare": true, 77 | "no-var-keyword": true, 78 | "object-literal-sort-keys": false, 79 | "one-line": [ 80 | true, 81 | "check-open-brace", 82 | "check-catch", 83 | "check-else", 84 | "check-whitespace" 85 | ], 86 | "prefer-const": true, 87 | "quotemark": [ 88 | true, 89 | "single" 90 | ], 91 | "radix": true, 92 | "semicolon": [ 93 | true, 94 | "always" 95 | ], 96 | "triple-equals": [ 97 | true, 98 | "allow-null-check" 99 | ], 100 | "typedef-whitespace": [ 101 | true, 102 | { 103 | "call-signature": "nospace", 104 | "index-signature": "nospace", 105 | "parameter": "nospace", 106 | "property-declaration": "nospace", 107 | "variable-declaration": "nospace" 108 | } 109 | ], 110 | "typeof-compare": true, 111 | "unified-signatures": true, 112 | "variable-name": false, 113 | "whitespace": [ 114 | true, 115 | "check-branch", 116 | "check-decl", 117 | "check-operator", 118 | "check-separator", 119 | "check-type" 120 | ], 121 | "directive-selector": [ 122 | true, 123 | "attribute", 124 | "app", 125 | "camelCase" 126 | ], 127 | "component-selector": [ 128 | true, 129 | "element", 130 | "app", 131 | "kebab-case" 132 | ], 133 | "no-output-on-prefix": true, 134 | "use-input-property-decorator": true, 135 | "use-output-property-decorator": true, 136 | "use-host-property-decorator": true, 137 | "no-input-rename": true, 138 | "no-output-rename": true, 139 | "use-life-cycle-interface": true, 140 | "use-pipe-transform-interface": true, 141 | "component-class-suffix": true, 142 | "directive-class-suffix": true 143 | } 144 | } 145 | -------------------------------------------------------------------------------- /BackEnd/SignalrCoreDemoWithSqlTableDependency/obj/Debug/netcoreapp2.0/SignalrCoreDemoWithSqlTableDependency.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\DEV\Angular5-SignalRCore-EFCore2-GoogleCharts\BackEnd\SignalrCoreDemoWithSqlTableDependency\bin\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.deps.json 2 | C:\DEV\Angular5-SignalRCore-EFCore2-GoogleCharts\BackEnd\SignalrCoreDemoWithSqlTableDependency\bin\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.runtimeconfig.json 3 | C:\DEV\Angular5-SignalRCore-EFCore2-GoogleCharts\BackEnd\SignalrCoreDemoWithSqlTableDependency\bin\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.runtimeconfig.dev.json 4 | C:\DEV\Angular5-SignalRCore-EFCore2-GoogleCharts\BackEnd\SignalrCoreDemoWithSqlTableDependency\bin\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.dll 5 | C:\DEV\Angular5-SignalRCore-EFCore2-GoogleCharts\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.csprojResolveAssemblyReference.cache 6 | C:\DEV\Angular5-SignalRCore-EFCore2-GoogleCharts\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.csproj.CoreCompileInputs.cache 7 | C:\DEV\Angular5-SignalRCore-EFCore2-GoogleCharts\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.AssemblyInfoInputs.cache 8 | C:\DEV\Angular5-SignalRCore-EFCore2-GoogleCharts\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.AssemblyInfo.cs 9 | C:\DEV\Angular5-SignalRCore-EFCore2-GoogleCharts\BackEnd\SignalrCoreDemoWithSqlTableDependency\bin\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.pdb 10 | C:\DEV\Angular5-SignalRCore-EFCore2-GoogleCharts\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.dll 11 | C:\DEV\Angular5-SignalRCore-EFCore2-GoogleCharts\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.pdb 12 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\bin\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.deps.json 13 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\bin\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.runtimeconfig.json 14 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\bin\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.runtimeconfig.dev.json 15 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\bin\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.dll 16 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\bin\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.pdb 17 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.csprojResolveAssemblyReference.cache 18 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.csproj.CoreCompileInputs.cache 19 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.AssemblyInfoInputs.cache 20 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.AssemblyInfo.cs 21 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.dll 22 | C:\MSDEVMTL\Angular5-RealTime-gauges-with-SignalR-Core-EFCore2\BackEnd\SignalrCoreDemoWithSqlTableDependency\obj\Debug\netcoreapp2.0\SignalrCoreDemoWithSqlTableDependency.pdb 23 | --------------------------------------------------------------------------------