Adapter Class

Defines the methods and properties that must be implemented by input and output adapters.

Inheritance Hierarchy

System.Object
  Microsoft.ComplexEventProcessing.Adapters.Adapter
    Microsoft.ComplexEventProcessing.Adapters.InputAdapterBase
    Microsoft.ComplexEventProcessing.Adapters.OutputAdapterBase

Namespace:  Microsoft.ComplexEventProcessing.Adapters
Assembly:  Microsoft.ComplexEventProcessing.Adapters (in Microsoft.ComplexEventProcessing.Adapters.dll)

Syntax

'Declaration
Public MustInherit Class Adapter _
    Implements IDisposable
'Usage
Dim instance As Adapter
public abstract class Adapter : IDisposable
public ref class Adapter abstract : IDisposable
[<AbstractClassAttribute>]
type Adapter =  
    class
        interface IDisposable
    end
public abstract class Adapter implements IDisposable

The Adapter type exposes the following members.

Constructors

  Name Description
Protected method Adapter Initializes a new instance of the Adapter class.

Top

Properties

  Name Description
Public property AdapterState Gets the state of the adapter.

Top

Methods

  Name Description
Protected method CleanupResources Internal virtual function that does cleanup of resources. To be overridden by the input and output adapter base classes.
Public method Dispose() Releases all of the resources owned by the adapter host.
Protected method Dispose(Boolean) Implements the Dispose pattern. To be overridden by derived classes
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnStopped This function is called when the adapter invokes Stopped to stop itself. It allows derived classes to implement additional behavior besides what the base class does.
Public method Ready Invoked by the adapter to signal to the engine that it is ready to be resumed. The engine will invoke Resume() only after the adapter has called Ready().
Public method Resume Calls Resume() on its own worker thread.
Public method Start Calls Start() on its own worker thread.
Public method Stop Notifies the adapter to stop as a result of stopping or aborting the query.
Public method Stopped Invoked by the adapter to notify the runtime that the adapter has shut down.
Public method ToString (Inherited from Object.)

Top

Remarks

For more information, see Creating Input and Output Adapters.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.ComplexEventProcessing.Adapters Namespace