-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C#: Can't use CloudBlockBlob as input parameter #89
Comments
Supported bindings are detailed here: http://go.microsoft.com/fwlink/?LinkID=524028&clcid=0x409 Likely the issue is we're only binding BlobAttribute using FileAccess.Read (the default), not taking the binding direction into account. If CloudBlockBlob only supports RW as the PDF indicates, we probably need to have direction=inout, and when we bind, we interpret that as FileAccess.ReadWrite |
Changing this from bug to feature for accuracy, as the issue is due to a limitation on the current supported binding access/directions. |
Can you elaborate on that? We have some other issues related to in/out support - wondering if this is related. |
We don't currently support Read/Write access, which is what the Blob binding requires in order to work with |
@mathewc any feedback on the approach described in my last message? This is something we can do pretty easily if there are no objections to that approach. |
There is a BindingDirection.InOut, it's just not plumbed everywhere correctly. What is your proposal? Note we have another issue tracking that work across the languages/bindings. |
Somehow, I missed that InOut was there. My proposal was to treat the RW types (as, unless I'm mistaken, they seem to support RW only) as InOut/RW. That would be easy to do when building the custom attribute, but it would only apply to C# at the moment. I would rather wait for proper InOut support if that's in the plans. |
I know we want to have consistency across the different languages, but for C#, we could easily enable this scenario in an "advanced" mode by manually modifying the |
This has been resolved by: |
Awesome! Could you let me know when the fix is in staging or prod? |
I want to use a CloudBlockBlob as a binding parameter, but I get an exception from the function script host when I try to do this.
C# function:
Binding:
Then, in the log stream, I see this:
I see the same issue if I try to do an output binding with CloudBlockBlob. A Stream binding seems to work fine, however.
The text was updated successfully, but these errors were encountered: