Skip to content

Conversation

@MaddyDev
Copy link
Contributor

@MaddyDev MaddyDev commented Nov 2, 2022

Samples for out of proc functions. I have replicated all applicable samples that are in samples-csharp.
Excluded the following two samples examples: 1. AddProductsAsyncCollector, 2. AddProductsCollector since .NET isolated projects run in a separate worker process, bindings can't take advantage of rich binding classes, such as ICollector, IAsyncCollector, and CloudBlockBlob. (as stated in https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide#output-bindings)

@MaddyDev MaddyDev changed the title Maddy/samples outof proc samples for out of proc sql bindings Nov 2, 2022
Copy link
Contributor

@Charles-Gagnon Charles-Gagnon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the lock files aren't fully updated, make sure you run dotnet restore --force-evaluate from the root directory.

@lucyzhang929
Copy link
Contributor

Why was the mvc package removed?

@MaddyDev
Copy link
Contributor Author

MaddyDev commented Nov 7, 2022

Why was the mvc package removed?

Didn't want to add another package dependency for the samples being exposed to users when we can avoid them. (Simplest way to implement them without additional stuff is the key)

@MaddyDev MaddyDev merged commit 3efb8c1 into main Nov 7, 2022
@MaddyDev MaddyDev deleted the maddy/samplesOutofProc branch November 7, 2022 20:01
PBBlox pushed a commit to PBBlox/azure-functions-sql-extension that referenced this pull request Apr 6, 2025
* add out of proc intial steps

* rename namespace

* update csproj

* add outofproc proj to sln

* add new samples-outofproc

* remove ci.yml and extensions-ci

* update xml

* samples-outofproc

* undo package lock updates

* clean up urls

* update comments

* fix indentation

* don't hardcode version

* add nuget version range syntax

* remove samplesOutofProc project

* address comments

* address comments part2

* missed set CommandText on output attribute

* remove unused param from xml

* fix formatting

* test changes

* fix build errors

* add dependencies to Directory.package

* recreated using az func extension for dependencies

* remove webjob references & add worker references.

* add Microsoft.AspNetCore.Mvc.Core ref

* add params func

* add more samples

* fix output bindings and version string

* adding multiple items

* use default deserialization

* create input and output binding folders

* update xml

* remove empty lines

* run package restore and comments

* merge main

* package restore after merging main

* update Mvc.Core to 2.0.1

* remove java classes

* Microsoft.AspNetCore.Mvc.Core to 2.2.0

* remove java changes

* remove mvc core package dependency

* remove sample, simple types supported outofproc

* build error fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants