BotAssert.MiddlewareNotNull Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MiddlewareNotNull(IMiddleware) |
Checks that a middleware object is not |
MiddlewareNotNull(IEnumerable<IMiddleware>) |
Checks that a middleware collection is not |
MiddlewareNotNull(IMiddleware)
Checks that a middleware object is not null
.
public static void MiddlewareNotNull (Microsoft.Bot.Builder.IMiddleware middleware);
static member MiddlewareNotNull : Microsoft.Bot.Builder.IMiddleware -> unit
Public Shared Sub MiddlewareNotNull (middleware As IMiddleware)
Parameters
- middleware
- IMiddleware
The middleware object.
Exceptions
middleware
is null
.
Applies to
MiddlewareNotNull(IEnumerable<IMiddleware>)
Checks that a middleware collection is not null
.
public static void MiddlewareNotNull (System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.IMiddleware> middleware);
static member MiddlewareNotNull : seq<Microsoft.Bot.Builder.IMiddleware> -> unit
Public Shared Sub MiddlewareNotNull (middleware As IEnumerable(Of IMiddleware))
Parameters
- middleware
- IEnumerable<IMiddleware>
The middleware.
Exceptions
middleware
is null
.