Beispiel #1
0
        public ReportManager(
            string node,
            IEmailStoreFactory factory,
            ServiceConfiguration configuration,
            BillingAgent billingAgent,
            MetricManager metricManager,
            ICredentialManager credentialManager)
        {
            this.node             = node;
            this.store            = factory.GetStore();
            this.telemetryManager = new ReportTelemetryManager(
                factory,
                configuration,
                billingAgent,
                metricManager);

            this.credentialManager = credentialManager;
            this.configuration     = configuration;
        }
Beispiel #2
0
        public ReportManager(
            ISmsStoreFactory factory,
            ServiceConfiguration configuration,
            BillingAgent billingAgent,
            MetricManager metricManager,
            ICredentialManager credentialManager
            /*,ITimeSeriesManager timeSeriesManager*/)
        {
            this.store            = factory.GetStore();
            this.telemetryManager = new ReportTelemetryManager(
                factory,
                configuration,
                billingAgent,
                metricManager,
                credentialManager);

            this.agents            = new ConcurrentDictionary <string, ReportAgent>();
            this.credentialManager = credentialManager;
            // this.timeSeriesManager = timeSeriesManager;

            this.Init().Wait();
        }