// Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System.Diagnostics;
using DotNetCore.CAP.Internal;

namespace DotNetCore.CAP.SqlServer.Diagnostics
{
    public class DiagnosticRegister : IProcessingServer
    {
        private readonly DiagnosticProcessorObserver _diagnosticProcessorObserver;

        public DiagnosticRegister(DiagnosticProcessorObserver diagnosticProcessorObserver)
        {
            _diagnosticProcessorObserver = diagnosticProcessorObserver;
        }

        public void Dispose()
        {

        }

        public void Pulse()
        {
            
        }

        public void Start()
        {
            DiagnosticListener.AllListeners.Subscribe(_diagnosticProcessorObserver);
        }
    }
}
