public CatListViewModel(ISearchImages imageSearchAgent, IAppInsightsService appInsights)
        {
            _appInsightsService = appInsights;
            _imageSearchAgent   = imageSearchAgent;

            this.Items = new ObservableCollection <Cat>();
        }
Ejemplo n.º 2
0
 public GraphUserService(IGraphBaseService graphService, IGraphGroupService graphGroupService,
                         IAppInsightsService appInsightsService, AuthorizationConfiguration authorizationConfiguration)
 {
     _graphService               = graphService;
     _appInsightsService         = appInsightsService;
     _graphGroupService          = graphGroupService;
     _authorizationConfiguration = authorizationConfiguration;
 }
Ejemplo n.º 3
0
        public IndexModel(ILogger <IndexModel> logger, IAppInsightsService appInsightsService, AppSettings appSettings)
        {
            _logger             = logger;
            _appInsightsService = appInsightsService;

            AvgAvailabilityForDays = appSettings.AvgAvailabilityForDays;
            AvgLatencyPerMinutes   = appSettings.AvgLatencyPerMinutes;
            MaxLatency             = appSettings.MaxLatency;
            MinAvailability        = appSettings.MinAvailability;
            Locations   = appSettings.Locations;
            Environment = appSettings.Environment;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            //this.Suspending += this.OnSuspending;

#if DEBUG
            LogManager.GetLog = type => new DebugLog(type);
#endif

            // Launch Application Insights encapsulation
            _insightsService = new Insights.AppInsightsService();
            var startUpEvent = _insightsService.LogStartEvent("appStartup", "starting up composite LoB demo app...");

            InitializeModules();

            _insightsService.LogEndEvent(startUpEvent);
        }
 public AppInsightsController(IArmService armService, IAppInsightsService appInsightsService)
 {
     _armService         = armService;
     _appInsightsService = appInsightsService;
 }
Ejemplo n.º 6
0
 public GraphGroupService(IGraphBaseService graphService, IAppInsightsService appInsightsService)
 {
     _graphService       = graphService;
     _appInsightsService = appInsightsService;
 }
Ejemplo n.º 7
0
 public ExceptionHandlingMiddleware(RequestDelegate nextDelegate, IAppInsightsService service)
 {
     _next = nextDelegate;
     _appInsightsService = service;
 }
 public FarmersViewModel(IFarmerRepository farmerRepository, IAppInsightsService appInsights)
 {
     _farmerRepo         = farmerRepository;
     _appInsightsService = appInsights;
     CurrentFarmer       = null;
 }
Ejemplo n.º 9
0
 public Module(IHubMetadataService hubMetadataService, IAppInsightsService appInsightsService)
 {
     _hubMetadataService = hubMetadataService;
     _appInsightsService = appInsightsService;
 }
Ejemplo n.º 10
0
 public SheepListViewModel(ISearchImages imageSearchAgent, IAppInsightsService appInsights)
 {
     _imageSearchAgent   = imageSearchAgent;
     _appInsightsService = appInsights;
     this.Items          = new ObservableCollection <Sheep>();
 }
Ejemplo n.º 11
0
 public Module(IHubMetadataService hubMetadataService, IFarmerRepository farmerRepository, IAppInsightsService appInsights)
 {
     _hubMetadataService = hubMetadataService;
     _farmerRepository   = farmerRepository;
     _appInsightsService = appInsights;
 }
Ejemplo n.º 12
0
 public AppInsightsController(IEncryptionService encryptionService, IAppInsightsService appInsightsService)
 {
     _encryptionService  = encryptionService;
     _appInsightsService = appInsightsService;
 }