C# Class Microsoft.AspNet.SignalR.SqlServer.ObservableDbOperation

A DbOperation that continues to execute over and over as new results arrive. Will attempt to use SQL Query Notifications, otherwise falls back to a polling receive loop.
Inheritance: DbOperation, IDisposable, IDbBehavior
ファイルを表示 Open project: SignalR/SignalR Class Usage Examples

Private Properties

Property Type Description
Dispose void
ExecuteReaderWithUpdates void
IDbBehavior bool
IDbBehavior void
InitEvents void
SqlDependency_OnChange void
StartSqlDependencyListener bool
Stop void

Public Methods

Method Description
ObservableDbOperation ( string connectionString, string commandText, TraceSource traceSource ) : System
ObservableDbOperation ( string connectionString, string commandText, TraceSource traceSource, IDbProviderFactory dbProviderFactory, IDbBehavior dbBehavior ) : System

Protected Methods

Method Description
AddSqlDependency ( IDbCommand command, Action callback ) : void

Private Methods

Method Description
Dispose ( ) : void
ExecuteReaderWithUpdates ( DbOperation>.Action processRecord ) : void
IDbBehavior ( ) : bool
IDbBehavior ( IDbCommand command, Action callback ) : void
InitEvents ( ) : void
SqlDependency_OnChange ( System.Data.SqlClient.SqlNotificationEventArgs e, DbOperation>.Action processRecord ) : void
StartSqlDependencyListener ( ) : bool
Stop ( Exception ex ) : void

Method Details

AddSqlDependency() protected method

protected AddSqlDependency ( IDbCommand command, Action callback ) : void
command IDbCommand
callback Action
return void

ObservableDbOperation() public method

public ObservableDbOperation ( string connectionString, string commandText, TraceSource traceSource ) : System
connectionString string
commandText string
traceSource System.Diagnostics.TraceSource
return System

ObservableDbOperation() public method

public ObservableDbOperation ( string connectionString, string commandText, TraceSource traceSource, IDbProviderFactory dbProviderFactory, IDbBehavior dbBehavior ) : System
connectionString string
commandText string
traceSource System.Diagnostics.TraceSource
dbProviderFactory IDbProviderFactory
dbBehavior IDbBehavior
return System