File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
web/src/signalr-web/SignalRMiddleware/EventApp/src/app Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ import { HttpClient } from '@angular/common/http';
5
5
export class ConfigurationService {
6
6
7
7
private configuration : IAppInsightsConfiguration ;
8
+
8
9
constructor ( private http : HttpClient ) { }
9
10
10
11
loadConfig ( ) {
11
- return this . http . get < IAppInsightsConfiguration > ( '/api/applicationsetting' )
12
+ return this . http . get < IAppInsightsConfiguration > ( 'https://crwebsssrtmrepszkp.azurewebsites.net /api/applicationsetting' )
12
13
. toPromise ( )
13
14
. then ( result => {
14
15
this . configuration = < IAppInsightsConfiguration > ( result ) ;
Original file line number Diff line number Diff line change 1
1
import { Injectable } from '@angular/core' ;
2
- import { environment } from '../../environments/environment' ;
3
2
import { AppInsights } from 'applicationinsights-js' ;
4
3
import { ConfigurationService } from '../../app/configuration/configuration.service' ;
5
4
@Injectable ( )
6
5
export class AppInsightsService {
7
6
8
- private config :Microsoft . ApplicationInsights . IConfig ;
7
+ private config :Microsoft . ApplicationInsights . IConfig = {
8
+ instrumentationKey :''
9
+ }
9
10
10
11
constructor ( configuration : ConfigurationService ) {
11
12
this . config . instrumentationKey = configuration . appInsightsKey ;
You can’t perform that action at this time.
0 commit comments