I'm not sure if it is possible in Azure Databricks and Data factory.
But this might be possible in Azure synapse notebook where you can write .Net for spark code and may be schedule synapse notebook in Synapse pipeline.
See this video : Scaling-NET-for-Apache-Spark-processing-jobs-with-Azure-Synapse
===============================================
If the response helped, do "Accept Answer" and upvote it -- Vaibhav