IWorkflowDebuggerService.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / RunTime / DebugEngine / IWorkflowDebuggerService.cs / 1305376 / IWorkflowDebuggerService.cs

                            using System; 
using System.Workflow.ComponentModel;

namespace System.Workflow.Runtime.DebugEngine
{ 
    public interface IWorkflowDebuggerService
    { 
        void NotifyHandlerInvoking(Delegate delegateHandler); 
        void NotifyHandlerInvoked();
    } 

    internal sealed class WorkflowDebuggerService : IWorkflowDebuggerService
    {
        private IWorkflowCoreRuntime coreRuntime; 

        internal WorkflowDebuggerService(IWorkflowCoreRuntime coreRuntime) 
        { 
            if (coreRuntime == null)
                throw new ArgumentNullException("coreRuntime"); 

            this.coreRuntime = coreRuntime;
        }
 
        void IWorkflowDebuggerService.NotifyHandlerInvoking(Delegate delegateHandler)
        { 
            this.coreRuntime.RaiseHandlerInvoking(delegateHandler); 
        }
 
        void IWorkflowDebuggerService.NotifyHandlerInvoked()
        {
            this.coreRuntime.RaiseHandlerInvoked();
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System; 
using System.Workflow.ComponentModel;

namespace System.Workflow.Runtime.DebugEngine
{ 
    public interface IWorkflowDebuggerService
    { 
        void NotifyHandlerInvoking(Delegate delegateHandler); 
        void NotifyHandlerInvoked();
    } 

    internal sealed class WorkflowDebuggerService : IWorkflowDebuggerService
    {
        private IWorkflowCoreRuntime coreRuntime; 

        internal WorkflowDebuggerService(IWorkflowCoreRuntime coreRuntime) 
        { 
            if (coreRuntime == null)
                throw new ArgumentNullException("coreRuntime"); 

            this.coreRuntime = coreRuntime;
        }
 
        void IWorkflowDebuggerService.NotifyHandlerInvoking(Delegate delegateHandler)
        { 
            this.coreRuntime.RaiseHandlerInvoking(delegateHandler); 
        }
 
        void IWorkflowDebuggerService.NotifyHandlerInvoked()
        {
            this.coreRuntime.RaiseHandlerInvoked();
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK