Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

GraphWebhookSubscription attribute binding error #94

Open
DDAndyChen opened this issue Jan 18, 2019 · 1 comment
Open

GraphWebhookSubscription attribute binding error #94

DDAndyChen opened this issue Jan 18, 2019 · 1 comment

Comments

@DDAndyChen
Copy link

I'm trying to create a function to get all subscription:

        [FunctionName("WebhookTest")]
        public static IActionResult Run(
            [HttpTrigger(AuthorizationLevel.Function, "get", Route = null)] HttpRequest req,
            [GraphWebhookSubscription] string[] subIds
            )
        {
            return new OkObjectResult("OK");
        }

I got this error in the CLI tool:

[1/18/2019 2:47:20 AM] Error indexing method 'WebhookTest.Run'
[1/18/2019 2:47:20 AM] Microsoft.Azure.WebJobs.Host: Error indexing method 'WebhookTest.Run'. System.Private.CoreLib: The given key 'T' was not present in the dictionary.

If I remove the [GraphWebhookSubscription] string[] subIds binding the function is OK.

@DDAndyChen
Copy link
Author

This binding [GraphWebhookSubscription] Microsoft.Graph.Subscription[] subIds seems OK.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant