Interface IContextSetter
Used by the compiled functions to set the context information available through IContextProvider
Namespace: FunctionMonkey.Abstractions
Assembly: FunctionMonkey.Abstractions.dll
Syntax
public interface IContextSetter
Methods
| Improve this Doc View SourceSetBlobContext(String, Uri, IDictionary<String, String>)
Sets the blob trigger context
Declaration
void SetBlobContext(string blobTrigger, Uri uri, IDictionary<string, string> metadata)
Parameters
Type | Name | Description |
---|---|---|
System. |
blobTrigger | |
Uri | uri | |
IDictionary<System. |
metadata |
SetEventHubContext(DateTime, Int64, String, String)
Sets the event hub context
Declaration
void SetEventHubContext(DateTime enqueuedTimeUtc, long sequenceNumber, string offset, string partitionKey)
Parameters
Type | Name | Description |
---|---|---|
Date |
enqueuedTimeUtc | |
System. |
sequenceNumber | |
System. |
offset | |
System. |
partitionKey |
SetExecutionContext(String, String, String, Guid)
Sets the execution context
Declaration
void SetExecutionContext(string functionAppDirectory, string functionDirectory, string functionName, Guid invocationId)
Parameters
Type | Name | Description |
---|---|---|
System. |
functionAppDirectory | |
System. |
functionDirectory | |
System. |
functionName | |
Guid | invocationId |
SetHttpContext(ClaimsPrincipal, String, Dictionary<String, IReadOnlyCollection<String>>)
Sets the HTTP context
Declaration
void SetHttpContext(ClaimsPrincipal claimsPrincipal, string requestUrl, Dictionary<string, IReadOnlyCollection<string>> headers)
Parameters
Type | Name | Description |
---|---|---|
Claims |
claimsPrincipal | |
System. |
requestUrl | The request URL |
Dictionary<System. |
headers | The headers associated with the context |
SetServiceBusContext(Int32, DateTime, String, String)
Sets the service bus context
Declaration
void SetServiceBusContext(int deliveryCount, DateTime enqueuedTimeUtc, string messageId, string lockToken)
Parameters
Type | Name | Description |
---|---|---|
System. |
deliveryCount | |
Date |
enqueuedTimeUtc | |
System. |
messageId | |
System. |
lockToken |
SetStorageQueueContext(DateTimeOffset, DateTimeOffset, DateTimeOffset, String, String, String, Int32)
Sets the storage queue context
Declaration
void SetStorageQueueContext(DateTimeOffset expirationTime, DateTimeOffset insertionTime, DateTimeOffset nextVisibleTime, string queueTrigger, string id, string popReceipt, int dequeueCount)
Parameters
Type | Name | Description |
---|---|---|
Date |
expirationTime | |
Date |
insertionTime | |
Date |
nextVisibleTime | |
System. |
queueTrigger | |
System. |
id | |
System. |
popReceipt | |
System. |
dequeueCount |