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<ICosmos |
cosmosDbFunctionBuilder | A builder that allows one or more functions to be created that are associated with the Cosmos connection |
Returns
Type | Description |
---|---|
IFunction |
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<ICosmos |
cosmosDbFunctionBuilder | A builder that allows one or more functions to be created that are associated with the Cosmos connection |
System. |
leaseConnectionName | The name of the connection for the lease collection in the environment settings |
Returns
Type | Description |
---|---|
IFunction |
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. |
connectionName | The name of the connection in the environment settings |
Action<ICosmos |
cosmosDbFunctionBuilder | A builder that allows one or more functions to be created that are associated with the Cosmos connection |
Returns
Type | Description |
---|---|
IFunction |
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. |
connectionName | The name of the connection in the environment settings |
System. |
leaseConnectionName | The name of the connection for the lease collection in the environment settings |
Action<ICosmos |
cosmosDbFunctionBuilder | A builder that allows one or more functions to be created that are associated with the Cosmos connection |
Returns
Type | Description |
---|---|
IFunction |
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<IEvent |
eventHubFunctionBuilder |
Returns
Type | Description |
---|---|
IFunction |
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. |
connectionName | The name of the connection in the environment settings |
Action<IEvent |
eventHubFunctionBuilder |
Returns
Type | Description |
---|---|
IFunction |
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<IHttp |
httpFunctionBuilder | The builder function for creating functions under this route |
Returns
Type | Description |
---|---|
IHttp |
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. |
routePrefix | The route - e.g. /api/v1/invoice |
Action<IHttp |
httpFunctionBuilder | The builder function for creating functions under this route |
Returns
Type | Description |
---|---|
IHttp |
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<IService |
serviceBusFunctionBuilder | A builder that allows one or more functions to be created that are associated with this connection |
Returns
Type | Description |
---|---|
IFunction |
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. |
connectionName | The name of the connection in the environment settings |
Action<IService |
serviceBusFunctionBuilder | A builder that allows one or more functions to be created that are associated with this connection |
Returns
Type | Description |
---|---|
IFunction |
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<ISignal |
signalRFunctionBuilder | A builder that allows one or more SignalR functions to be created |
Returns
Type | Description |
---|---|
IFunction |
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. |
connectionSettingName | The name of the connection in the environment settings |
Action<ISignal |
signalRFunctionBuilder | A builder that allows one or more SignalR functions to be created |
Returns
Type | Description |
---|---|
IFunction |
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<IStorage |
storageFunctionBuilder | A builder that allows one or more functions to be created that are associated with this connection |
Returns
Type | Description |
---|---|
IFunction |
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. |
connectionName | The name of the connection in the environment settings |
Action<IStorage |
storageFunctionBuilder | A builder that allows one or more functions to be created that are associated with this connection |
Returns
Type | Description |
---|---|
IFunction |
The function builder for a fluent API |