Show / Hide Table of Contents

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 Source

SetBlobContext(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.String blobTrigger
Uri uri
IDictionary<System.String, System.String> metadata
| Improve this Doc View Source

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
DateTime enqueuedTimeUtc
System.Int64 sequenceNumber
System.String offset
System.String partitionKey
| Improve this Doc View Source

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.String functionAppDirectory
System.String functionDirectory
System.String functionName
Guid invocationId
| Improve this Doc View Source

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
ClaimsPrincipal claimsPrincipal
System.String requestUrl

The request URL

Dictionary<System.String, IReadOnlyCollection<System.String>> headers

The headers associated with the context

| Improve this Doc View Source

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.Int32 deliveryCount
DateTime enqueuedTimeUtc
System.String messageId
System.String lockToken
| Improve this Doc View Source

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
DateTimeOffset expirationTime
DateTimeOffset insertionTime
DateTimeOffset nextVisibleTime
System.String queueTrigger
System.String id
System.String popReceipt
System.Int32 dequeueCount

Extension Methods

OpenApiFluentValidationHelper.IsNumeric(Object)
OpenApiFluentValidationHelper.NumericToInt(Object)
OpenApiFluentValidationHelper.NumericToDouble(Object)
OpenApiFluentValidationHelper.NumericToDecimal(Object)
  • Improve this Doc
  • View Source
  • 0 Comments
In This Article
  • Methods
    • SetBlobContext(String, Uri, IDictionary<String, String>)
    • SetEventHubContext(DateTime, Int64, String, String)
    • SetExecutionContext(String, String, String, Guid)
    • SetHttpContext(ClaimsPrincipal, String, Dictionary<String, IReadOnlyCollection<String>>)
    • SetServiceBusContext(Int32, DateTime, String, String)
    • SetStorageQueueContext(DateTimeOffset, DateTimeOffset, DateTimeOffset, String, String, String, Int32)
  • Extension Methods
Back to top Copyright © 2018 James Randall