Пример #1
0
        /// <summary>
        /// Creates a new instance of a <see cref="GrafanaDataService"/>.
        /// </summary>
        public GrafanaDataService()
        {
            m_dataSource         = new HistorianDataSource(this);
            m_cancellationSource = new CancellationTokenSource();
            Endpoints            = "http.rest://localhost:6057/api/grafana/";
            ServiceEnabled       = false;

            // Make sure exceptions are reported in JSON format
            JsonFaultHandlingEnabled = true;
        }
        /// <summary>
        /// Creates a new instance of a <see cref="GrafanaDataService"/>.
        /// </summary>
        public GrafanaDataService()
        {
            m_dataSource = new HistorianDataSource(this);
            m_cancellationSource = new CancellationTokenSource();
            Endpoints = "http.rest://localhost:6057/api/grafana/";
            ServiceEnabled = false;

            // Make sure exceptions are reported in JSON format
            JsonFaultHandlingEnabled = true;
        }
Пример #3
0
 /// <summary>
 /// Creates a new instance of a <see cref="GrafanaDataService"/>.
 /// </summary>
 public GrafanaDataService()
 {
     m_dataSource = new HistorianDataSource(this);
     m_cancellationSource = new CancellationTokenSource();
     Endpoints = "http.rest://localhost:6057/api/grafana/";
     ServiceEnabled = false;
 }