public ProviderService()
        {
            m_core = s_core;
            m_callback = OperationContext.Current.GetCallbackChannel<IProviderCallback>();
            OperationContext.Current.Channel.Closed += Channel_Closed;

            m_core.AddConnection(this);
        }
Esempio n. 2
0
 public void GetDetails()
 {
     audioGraph = new AudioGraph();
     audioGraph.CaptureComplete   += new EventHandler(audioGraph_CaptureComplete);
     audioGraph.MaximumCalculated += new EventHandler <MaxSampleEventArgs>(audioGraph_MaximumCalculated);
     audioGraph.FftCalculated     += new EventHandler <FftEventArgs>(audioGraph_FftCalculated);
     callback = OperationContext.Current.GetCallbackChannel <IProviderCallback>();
     this.Capture();
 }