Interface IFunctionBuilder
An interface that allows functions to be configured during the building process
Inherited Members
Namespace: FunctionMonkey.Abstractions.Builders
Assembly: FunctionMonkey.Abstractions.dll
Syntax
public interface IFunctionBuilder : ITimerFunctionBuilder
Methods
| Improve this Doc View SourceCosmosDb(Action<ICosmosDbFunctionBuilder>)
Allows Cosmos DB functions to be configured based on a connection name
Declaration
IFunctionBuilder CosmosDb(Action<ICosmosDbFunctionBuilder> cosmosDbFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<ICosmosDbFunctionBuilder> | cosmosDbFunctionBuilder | A builder that allows one or more functions to be created that are associated with the Cosmos connection |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |
CosmosDb(Action<ICosmosDbFunctionBuilder>, String)
Allows Cosmos DB functions to be configured based on a default connection name
Declaration
IFunctionBuilder CosmosDb(Action<ICosmosDbFunctionBuilder> cosmosDbFunctionBuilder, string leaseConnectionName)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<ICosmosDbFunctionBuilder> | cosmosDbFunctionBuilder | A builder that allows one or more functions to be created that are associated with the Cosmos connection |
| System.String | leaseConnectionName | The name of the connection for the lease collection in the environment settings |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |
CosmosDb(String, Action<ICosmosDbFunctionBuilder>)
Allows Cosmos DB functions to be configured based on a connection name
Declaration
IFunctionBuilder CosmosDb(string connectionName, Action<ICosmosDbFunctionBuilder> cosmosDbFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | connectionName | The name of the connection in the environment settings |
| Action<ICosmosDbFunctionBuilder> | cosmosDbFunctionBuilder | A builder that allows one or more functions to be created that are associated with the Cosmos connection |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |
CosmosDb(String, String, Action<ICosmosDbFunctionBuilder>)
Allows Cosmos DB functions to be configured based on a connection name
Declaration
IFunctionBuilder CosmosDb(string connectionName, string leaseConnectionName, Action<ICosmosDbFunctionBuilder> cosmosDbFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | connectionName | The name of the connection in the environment settings |
| System.String | leaseConnectionName | The name of the connection for the lease collection in the environment settings |
| Action<ICosmosDbFunctionBuilder> | cosmosDbFunctionBuilder | A builder that allows one or more functions to be created that are associated with the Cosmos connection |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |
EventHub(Action<IEventHubFunctionBuilder>)
Allows Event Hub functions to be configured based on the default connection name of eventHubConnectionString
Declaration
IFunctionBuilder EventHub(Action<IEventHubFunctionBuilder> eventHubFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<IEventHubFunctionBuilder> | eventHubFunctionBuilder |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |
EventHub(String, Action<IEventHubFunctionBuilder>)
Allows Event Hub functions to be configured based on a connection name
Declaration
IFunctionBuilder EventHub(string connectionName, Action<IEventHubFunctionBuilder> eventHubFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | connectionName | The name of the connection in the environment settings |
| Action<IEventHubFunctionBuilder> | eventHubFunctionBuilder |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |
HttpRoute(Action<IHttpFunctionBuilder>)
Create a route for one or more HTTP triggered functions
Declaration
IHttpRouteFunctionBuilder HttpRoute(Action<IHttpFunctionBuilder> httpFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<IHttpFunctionBuilder> | httpFunctionBuilder | The builder function for creating functions under this route |
Returns
| Type | Description |
|---|---|
| IHttpRouteFunctionBuilder | The function builder for a fluent API, additionally contains options for configuring the route with OpenAPI info |
HttpRoute(String, Action<IHttpFunctionBuilder>)
Create a route for one or more HTTP triggered functions
Declaration
IHttpRouteFunctionBuilder HttpRoute(string routePrefix, Action<IHttpFunctionBuilder> httpFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | routePrefix | The route - e.g. /api/v1/invoice |
| Action<IHttpFunctionBuilder> | httpFunctionBuilder | The builder function for creating functions under this route |
Returns
| Type | Description |
|---|---|
| IHttpRouteFunctionBuilder | The function builder for a fluent API, additionally contains options for configuring the route with OpenAPI info |
ServiceBus(Action<IServiceBusFunctionBuilder>)
Allows Service Bus functions to be configured based on the default connection name of serviceBusConnectionString
Declaration
IFunctionBuilder ServiceBus(Action<IServiceBusFunctionBuilder> serviceBusFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<IServiceBusFunctionBuilder> | serviceBusFunctionBuilder | A builder that allows one or more functions to be created that are associated with this connection |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |
ServiceBus(String, Action<IServiceBusFunctionBuilder>)
Allows Service Bus functions to be configured based on a connection name
Declaration
IFunctionBuilder ServiceBus(string connectionName, Action<IServiceBusFunctionBuilder> serviceBusFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | connectionName | The name of the connection in the environment settings |
| Action<IServiceBusFunctionBuilder> | serviceBusFunctionBuilder | A builder that allows one or more functions to be created that are associated with this connection |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |
SignalR(Action<ISignalRFunctionBuilder>)
Allows SignalR functions to be built based on a default connection name of AzureSignalRConnectionString
Declaration
IFunctionBuilder SignalR(Action<ISignalRFunctionBuilder> signalRFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<ISignalRFunctionBuilder> | signalRFunctionBuilder | A builder that allows one or more SignalR functions to be created |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |
SignalR(String, Action<ISignalRFunctionBuilder>)
Allows SignalR functions to be built based on a connection name
Declaration
IFunctionBuilder SignalR(string connectionSettingName, Action<ISignalRFunctionBuilder> signalRFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | connectionSettingName | The name of the connection in the environment settings |
| Action<ISignalRFunctionBuilder> | signalRFunctionBuilder | A builder that allows one or more SignalR functions to be created |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |
Storage(Action<IStorageFunctionBuilder>)
Allows Azure Storage functions to be configured based on a default connection name
Declaration
IFunctionBuilder Storage(Action<IStorageFunctionBuilder> storageFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<IStorageFunctionBuilder> | storageFunctionBuilder | A builder that allows one or more functions to be created that are associated with this connection |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |
Storage(String, Action<IStorageFunctionBuilder>)
Allows Azure Storage functions to be configured based on a connection name
Declaration
IFunctionBuilder Storage(string connectionName, Action<IStorageFunctionBuilder> storageFunctionBuilder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | connectionName | The name of the connection in the environment settings |
| Action<IStorageFunctionBuilder> | storageFunctionBuilder | A builder that allows one or more functions to be created that are associated with this connection |
Returns
| Type | Description |
|---|---|
| IFunctionBuilder | The function builder for a fluent API |