Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​AspNetCore.​Connections.​ConnectionBuilderExtensions

Assembly: Microsoft.AspNetCore.Connections.Abstractions

Inheritance: object → ConnectionBuilderExtensions

<see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> extensions.

Methods

public static IConnectionBuilder
UseConnectionHandler​(IConnectionBuilder connectionBuilder)
Use the given <typeparamref name="TConnectionHandler" /> <see cref="T:Microsoft.AspNetCore.Connections.ConnectionHandler" /> .
Returns The <see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> .
connectionBuilder The <see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> .
public static IConnectionBuilder
Use​(IConnectionBuilder connectionBuilder, System.​Func<​ConnectionContext, System.​Func<​System.​Threading.​Tasks.​Task>, System.​Threading.​Tasks.​Task> middleware)
Add the given <paramref name="middleware" /> to the connection. If you aren't calling the next function, use <see cref="M:Microsoft.AspNetCore.Connections.ConnectionBuilderExtensions.Run(Microsoft.AspNetCore.Connections.IConnectionBuilder,System.Func{Microsoft.AspNetCore.Connections.ConnectionContext,System.Threading.Tasks.Task})" /> instead. <para> Prefer using <see cref="M:Microsoft.AspNetCore.Connections.ConnectionBuilderExtensions.Use(Microsoft.AspNetCore.Connections.IConnectionBuilder,System.Func{Microsoft.AspNetCore.Connections.ConnectionContext,Microsoft.AspNetCore.Connections.ConnectionDelegate,System.Threading.Tasks.Task})" /> for better performance as shown below: <code> builder.Use((context, next) =&gt; { return next(context); }); </code></para>
Returns The <see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> .
connectionBuilder The <see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> .
middleware The middleware to add to the <see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> .
public static IConnectionBuilder
Use​(IConnectionBuilder connectionBuilder, System.​Func<​ConnectionContext, ConnectionDelegate, System.​Threading.​Tasks.​Task> middleware)
Add the given <paramref name="middleware" /> to the connection. If you aren't calling the next function, use <see cref="M:Microsoft.AspNetCore.Connections.ConnectionBuilderExtensions.Run(Microsoft.AspNetCore.Connections.IConnectionBuilder,System.Func{Microsoft.AspNetCore.Connections.ConnectionContext,System.Threading.Tasks.Task})" /> instead.
Returns The <see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> .
connectionBuilder The <see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> .
middleware The middleware to add to the <see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> .
public static IConnectionBuilder
Run​(IConnectionBuilder connectionBuilder, System.​Func<​ConnectionContext, System.​Threading.​Tasks.​Task> middleware)
Add the given <paramref name="middleware" /> to the connection.
Returns The <see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> .
connectionBuilder The <see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> .
middleware The middleware to add to the <see cref="T:Microsoft.AspNetCore.Connections.IConnectionBuilder" /> .
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object