CrazyIter_Bin 3 年之前
父节点
当前提交
750234747a

+ 1 - 1
TEAMModelFunction/MonitorCosmosDB.cs

@@ -35,7 +35,7 @@ namespace TEAMModelFunction
             _azureRedis = azureRedis;
             _configuration = configuration;
         }
-        //[FunctionName("Common")]
+        //[Function("Common")]
         //public async Task Common([Microsoft.Azure.Functions.Worker.CosmosDBTriggerAttribute(
         //    databaseName: "TEAMModelOS",
         //    containerName: "Common",

+ 175 - 0
TEAMModelFunction/Properties/ServiceDependencies/teammodelos-func-v4 - Zip Deploy/profile.arm.json

@@ -0,0 +1,175 @@
+{
+  "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
+  "contentVersion": "1.0.0.0",
+  "metadata": {
+    "_dependencyType": "compute.function.windows.appService"
+  },
+  "parameters": {
+    "resourceGroupName": {
+      "type": "string",
+      "defaultValue": "TEAMModelChengdu",
+      "metadata": {
+        "description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking."
+      }
+    },
+    "resourceGroupLocation": {
+      "type": "string",
+      "defaultValue": "",
+      "metadata": {
+        "description": "Location of the resource group. Resource groups could have different location than resources, however by default we use API versions from latest hybrid profile which support all locations for resource types we support."
+      }
+    },
+    "resourceName": {
+      "type": "string",
+      "defaultValue": "teammodelos-func-v4",
+      "metadata": {
+        "description": "Name of the main resource to be created by this template."
+      }
+    },
+    "resourceLocation": {
+      "type": "string",
+      "defaultValue": "[parameters('resourceGroupLocation')]",
+      "metadata": {
+        "description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there."
+      }
+    }
+  },
+  "resources": [
+    {
+      "type": "Microsoft.Resources/resourceGroups",
+      "name": "[parameters('resourceGroupName')]",
+      "location": "[parameters('resourceGroupLocation')]",
+      "apiVersion": "2019-10-01"
+    },
+    {
+      "type": "Microsoft.Resources/deployments",
+      "name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]",
+      "resourceGroup": "[parameters('resourceGroupName')]",
+      "apiVersion": "2019-10-01",
+      "dependsOn": [
+        "[parameters('resourceGroupName')]"
+      ],
+      "properties": {
+        "mode": "Incremental",
+        "expressionEvaluationOptions": {
+          "scope": "inner"
+        },
+        "parameters": {
+          "resourceGroupName": {
+            "value": "[parameters('resourceGroupName')]"
+          },
+          "resourceGroupLocation": {
+            "value": "[parameters('resourceGroupLocation')]"
+          },
+          "resourceName": {
+            "value": "[parameters('resourceName')]"
+          },
+          "resourceLocation": {
+            "value": "[parameters('resourceLocation')]"
+          }
+        },
+        "template": {
+          "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
+          "contentVersion": "1.0.0.0",
+          "parameters": {
+            "resourceGroupName": {
+              "type": "string"
+            },
+            "resourceGroupLocation": {
+              "type": "string"
+            },
+            "resourceName": {
+              "type": "string"
+            },
+            "resourceLocation": {
+              "type": "string"
+            }
+          },
+          "variables": {
+            "storage_name": "[toLower(concat('storage', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId))))]",
+            "appServicePlan_name": "[concat('Plan', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]",
+            "storage_ResourceId": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('resourceGroupName'), '/providers/Microsoft.Storage/storageAccounts/', variables('storage_name'))]",
+            "appServicePlan_ResourceId": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('resourceGroupName'), '/providers/Microsoft.Web/serverFarms/', variables('appServicePlan_name'))]",
+            "function_ResourceId": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('resourceGroupName'), '/providers/Microsoft.Web/sites/', parameters('resourceName'))]"
+          },
+          "resources": [
+            {
+              "location": "[parameters('resourceLocation')]",
+              "name": "[parameters('resourceName')]",
+              "type": "Microsoft.Web/sites",
+              "apiVersion": "2015-08-01",
+              "tags": {
+                "[concat('hidden-related:', variables('appServicePlan_ResourceId'))]": "empty"
+              },
+              "dependsOn": [
+                "[variables('appServicePlan_ResourceId')]",
+                "[variables('storage_ResourceId')]"
+              ],
+              "kind": "functionapp",
+              "properties": {
+                "name": "[parameters('resourceName')]",
+                "kind": "functionapp",
+                "httpsOnly": true,
+                "reserved": false,
+                "serverFarmId": "[variables('appServicePlan_ResourceId')]",
+                "siteConfig": {
+                  "alwaysOn": true
+                }
+              },
+              "identity": {
+                "type": "SystemAssigned"
+              },
+              "resources": [
+                {
+                  "name": "appsettings",
+                  "type": "config",
+                  "apiVersion": "2015-08-01",
+                  "dependsOn": [
+                    "[variables('function_ResourceId')]"
+                  ],
+                  "properties": {
+                    "AzureWebJobsDashboard": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storage_name'), ';AccountKey=', listKeys(variables('storage_ResourceId'), '2017-10-01').keys[0].value, ';EndpointSuffix=', 'core.windows.net')]",
+                    "AzureWebJobsStorage": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storage_name'), ';AccountKey=', listKeys(variables('storage_ResourceId'), '2017-10-01').keys[0].value, ';EndpointSuffix=', 'core.windows.net')]",
+                    "FUNCTIONS_EXTENSION_VERSION": "~3",
+                    "FUNCTIONS_WORKER_RUNTIME": "dotnet"
+                  }
+                }
+              ]
+            },
+            {
+              "location": "[parameters('resourceGroupLocation')]",
+              "name": "[variables('storage_name')]",
+              "type": "Microsoft.Storage/storageAccounts",
+              "apiVersion": "2017-10-01",
+              "tags": {
+                "[concat('hidden-related:', concat('/providers/Microsoft.Web/sites/', parameters('resourceName')))]": "empty"
+              },
+              "properties": {
+                "supportsHttpsTrafficOnly": true
+              },
+              "sku": {
+                "name": "Standard_LRS"
+              },
+              "kind": "Storage"
+            },
+            {
+              "location": "[parameters('resourceGroupLocation')]",
+              "name": "[variables('appServicePlan_name')]",
+              "type": "Microsoft.Web/serverFarms",
+              "apiVersion": "2015-08-01",
+              "sku": {
+                "name": "S1",
+                "tier": "Standard",
+                "family": "S",
+                "size": "S1"
+              },
+              "properties": {
+                "name": "[variables('appServicePlan_name')]"
+              }
+            }
+          ]
+        }
+      }
+    }
+  ]
+}

+ 1 - 2
TEAMModelFunction/Startup.cs

@@ -19,7 +19,6 @@ namespace TEAMModelFunction
     {
         public override void Configure(IFunctionsHostBuilder builder)
         {
-            var s = Environment.GetEnvironmentVariable("Azure:ServiceBus:ConnectionString");
             builder.Services.AddHttpClient();
             builder.Services.AddHttpClient<DingDing>();
             builder.Services.AddHttpClient<ThirdApisService>();
@@ -30,6 +29,6 @@ namespace TEAMModelFunction
             builder.Services.AddAzureRedis(Environment.GetEnvironmentVariable("Azure:Redis:ConnectionString"));
         }
 
-        
+
     }
 }

+ 7 - 7
TEAMModelFunction/TEAMModelFunction.csproj

@@ -6,13 +6,13 @@
 		<Version>5.2112.21</Version>
 		<AssemblyVersion>5.2107.29.2</AssemblyVersion>
 		<FileVersion>5.2107.29.2</FileVersion>
-		<OutputType>Exe</OutputType>
+		<!--<OutputType>Exe</OutputType>
 		<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
-		<SignAssembly>true</SignAssembly>
+		<SignAssembly>true</SignAssembly>-->
 	</PropertyGroup>
-	<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
+	<!--<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
 		<DefineConstants>DEBUG;TRACE</DefineConstants>
-	</PropertyGroup>
+	</PropertyGroup>-->
 	<ItemGroup>
 		<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.0.1" />
 		<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
@@ -20,9 +20,9 @@
 		<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.ServiceBus" Version="5.2.0" />
 		<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Http" Version="3.0.12" />
 		<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="5.0.0" />
-		<!--<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.6.0" />-->
-		<!--<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.3.0" />-->
-		<!--<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" />
+		<!--<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.6.0" />
+		<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.3.0" />
+		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" />
 		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Storage" Version="5.0.0" />
 		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.ServiceBus" Version="5.0.0-beta.6" />
 		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.CosmosDB" Version="4.0.0-preview2" />

TEAMModelOSFunction/.gitignore → TEAMModelOS.FunctionV4/.gitignore


+ 46 - 0
TEAMModelOS.FunctionV4/Function1.cs

@@ -0,0 +1,46 @@
+using System;
+using System.Collections.Generic;
+using System.Text.Json;
+using Microsoft.Azure.Functions.Worker;
+using Microsoft.Azure.WebJobs;
+using Microsoft.Azure.WebJobs.Host;
+using Microsoft.Extensions.Logging;
+
+namespace TEAMModelOS.FunctionV4
+{
+    public   class Function1
+    {
+        //[FunctionName("Function1")]
+        //public static void Run([CosmosDBTrigger(
+        //    databaseName: "TEAMModelOS",
+        //    collectionName: "Common",
+        //    ConnectionStringSetting = "Azure:Cosmos:ConnectionString",
+        //    LeaseCollectionName = "leases")]IReadOnlyList<Document> input,
+        //    ILogger log)
+        //{
+        //    if (input != null && input.Count > 0)
+        //    {
+        //        log.LogInformation("Documents modified " + input.Count);
+        //        log.LogInformation("First document Id " + input[0].Id);
+        //    }
+        // }
+
+        [Function("Function1")]
+        public   void Run([CosmosDBTrigger(
+                databaseName: "TEAMModelOS",
+                containerName: "Common",
+                Connection  = "Azure:Cosmos:ConnectionString",
+                LeaseContainerName = "leases",
+                //LeaseContainerPrefix = "TEAMModelOS",
+                CreateLeaseContainerIfNotExists =true)]IReadOnlyList<JsonElement> input,
+             ILogger log)
+        {
+            if (input != null && input.Count > 0)
+            {
+                //log.LogInformation("Documents modified " + input.Count);
+                //log.LogInformation("First document Id " + input[0].Id);
+            }
+
+        }
+    }
+}

+ 27 - 0
TEAMModelOS.FunctionV4/Program.cs

@@ -0,0 +1,27 @@
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.DependencyInjection.Extensions;
+using Microsoft.Extensions.Hosting;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TEAMModelOS.SDK.DI;
+
+namespace TEAMModelOS.FunctionV4
+{
+    public static class Program
+    {
+        public   static  void Main(string[] args)
+        {
+            var builder = new HostBuilder().ConfigureFunctionsWorkerDefaults();
+            var host = builder.ConfigureServices(services =>
+            {
+                services.AddAzureCosmos(Environment.GetEnvironmentVariable("Azure:Cosmos:ConnectionString"));
+                services.AddSingleton<Function1>();
+            })
+            .Build();
+              host.RunAsync();
+        }
+    }
+}

+ 1 - 1
TEAMModelOSFunction/Properties/serviceDependencies.json

@@ -1,7 +1,7 @@
 {
   "dependencies": {
     "appInsights1": {
-      "type": "appInsights.sdk"
+      "type": "appInsights"
     },
     "storage1": {
       "type": "storage",

+ 12 - 0
TEAMModelOS.FunctionV4/Properties/serviceDependencies.local.json

@@ -0,0 +1,12 @@
+{
+  "dependencies": {
+    "appInsights1": {
+      "type": "appInsights.sdk"
+    },
+    "storage1": {
+      "resourceId": "/subscriptions/[parameters('subscriptionId')]/resourceGroups/[parameters('resourceGroupName')]/providers/Microsoft.Storage/storageAccounts/teammodellog",
+      "type": "storage.azure",
+      "connectionId": "AzureWebJobsStorage"
+    }
+  }
+}

+ 36 - 0
TEAMModelOS.FunctionV4/TEAMModelOS.FunctionV4.csproj

@@ -0,0 +1,36 @@
+<Project Sdk="Microsoft.NET.Sdk">
+	<PropertyGroup>
+		<TargetFramework>net6.0</TargetFramework>
+		<AzureFunctionsVersion>v4</AzureFunctionsVersion>
+		<OutputType>Exe</OutputType>
+		<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
+		<SignAssembly>true</SignAssembly>
+	</PropertyGroup>
+	<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
+		<DefineConstants>DEBUG;TRACE</DefineConstants>
+	</PropertyGroup>
+	<ItemGroup>
+		<!--<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.CosmosDB" Version="3.0.10" />-->
+		<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.0.1" />
+		<!--<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.3.0" />-->
+		
+		<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.6.0" />
+		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" />
+		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Storage" Version="5.0.0" />
+		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.ServiceBus" Version="5.0.0-beta.6" />
+		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.CosmosDB" Version="4.0.0-preview2" />
+		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Storage.Blobs" Version="5.0.0" />
+	</ItemGroup>
+	<ItemGroup>
+	  <ProjectReference Include="..\TEAMModelOS.SDK\TEAMModelOS.SDK.csproj" />
+	</ItemGroup>
+	<ItemGroup>
+		<None Update="host.json">
+			<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+		</None>
+		<None Update="local.settings.json">
+			<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+			<CopyToPublishDirectory>Never</CopyToPublishDirectory>
+		</None>
+	</ItemGroup>
+</Project>

+ 19 - 0
TEAMModelOS.FunctionV4/host.json

@@ -0,0 +1,19 @@
+{
+  "version": "2.0",
+  "cosmosDB": {
+    "connectionMode": "Direct",
+    "protocol": "Tcp"
+  },
+  "logging": {
+    "console": {
+      "isEnabled": "true"
+    },
+    "applicationInsights": {
+      "samplingExcludedTypes": "Request",
+      "samplingSettings": {
+        "isEnabled": true,
+        "ExcludedTypes": "Request"
+      }
+    }
+  }
+}

+ 5 - 5
TEAMModelOS.sln

@@ -15,7 +15,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TEAMModelAPI", "TEAMModelAP
 EndProject
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TEAMModeBI", "TEAMModeBI\TEAMModeBI.csproj", "{13572BD5-5F97-419A-A3A3-12E0358192E4}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TEAMModelOSFunction", "TEAMModelOSFunction\TEAMModelOSFunction.csproj", "{A8BDFC58-A484-42F4-A7C8-F51BEDC08C20}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TEAMModelOS.FunctionV4", "TEAMModelOS.FunctionV4\TEAMModelOS.FunctionV4.csproj", "{2A159D6A-55DB-4B0F-9129-3EB9EE28A1CC}"
 EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -47,10 +47,10 @@ Global
 		{13572BD5-5F97-419A-A3A3-12E0358192E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{13572BD5-5F97-419A-A3A3-12E0358192E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{13572BD5-5F97-419A-A3A3-12E0358192E4}.Release|Any CPU.Build.0 = Release|Any CPU
-		{A8BDFC58-A484-42F4-A7C8-F51BEDC08C20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{A8BDFC58-A484-42F4-A7C8-F51BEDC08C20}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{A8BDFC58-A484-42F4-A7C8-F51BEDC08C20}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{A8BDFC58-A484-42F4-A7C8-F51BEDC08C20}.Release|Any CPU.Build.0 = Release|Any CPU
+		{2A159D6A-55DB-4B0F-9129-3EB9EE28A1CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{2A159D6A-55DB-4B0F-9129-3EB9EE28A1CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{2A159D6A-55DB-4B0F-9129-3EB9EE28A1CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{2A159D6A-55DB-4B0F-9129-3EB9EE28A1CC}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

+ 1 - 0
TEAMModelOS/Controllers/School/TmdUserController.cs

@@ -137,6 +137,7 @@ namespace TEAMModelOS.Controllers
                 if (!string.IsNullOrEmpty(defaultschool)) { 
 
                 }
+
                 return Ok(new { location=_option.Location ,auth_token,  schools, defaultschool , status = 200 });
 
             }

+ 0 - 28
TEAMModelOSFunction/Function1.cs

@@ -1,28 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Microsoft.Azure.Documents;
-using Microsoft.Azure.WebJobs;
-using Microsoft.Azure.WebJobs.Host;
-using Microsoft.Extensions.Logging;
-
-namespace TEAMModelOSFunction
-{
-    public static class Function1
-    {
-        [FunctionName("Function1")]
-        public static void Run([CosmosDBTrigger(
-            databaseName: "TEAMModelOS",
-            collectionName: "Teacher",
-            ConnectionStringSetting = "AccountEndpoint=https://cdhabookdep-free.documents.azure.cn:443/;AccountKey=JTUVk92Gjsx17L0xqxn0X4wX2thDPMKiw4daeTyV1HzPb6JmBeHdtFY1MF1jdctW1ofgzqkDMFOtcqS46by31A==;",
-            LeaseCollectionName = "leases")]
-            IReadOnlyList<Document> input,
-            ILogger log)
-        {
-            if (input != null && input.Count > 0)
-            {
-                log.LogInformation("Documents modified " + input.Count);
-                log.LogInformation("First document Id " + input[0].Id);
-            }
-        }
-    }
-}

+ 0 - 51
TEAMModelOSFunction/Program.cs

@@ -1,51 +0,0 @@
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using TEAMModelOS.SDK;
-using TEAMModelOS.SDK.DI;
-using TEAMModelOS.SDK.Models.Service;
-
-namespace TEAMModelFunction
-{
-    public class Program
-    {
-        static async Task Main(string[] args)
-        {
-            // #if DEBUG
-            //          Debugger.Launch();
-            // #endif
-            //<docsnippet_startup>
-            var host = new HostBuilder()
-                //<docsnippet_configure_defaults>
-                .ConfigureFunctionsWorkerDefaults()
-                //</docsnippet_configure_defaults>
-                //<docsnippet_dependency_injection>
-                .ConfigureServices(Services =>
-                {
-                    var s = Environment.GetEnvironmentVariable("Azure:ServiceBus:ConnectionString");
-                   // Services.AddSingleton<IHttpResponderService, DefaultHttpResponderService>();
-                    Services.AddHttpClient();
-                    Services.AddHttpClient<DingDing>();
-                    Services.AddHttpClient<ThirdApisService>();
-                    Services.AddHttpClient<NotificationService>();
-                    Services.AddAzureServiceBus(Environment.GetEnvironmentVariable("Azure:ServiceBus:ConnectionString"));
-                    Services.AddAzureStorage(Environment.GetEnvironmentVariable("Azure:Storage:ConnectionString"));
-                    Services.AddAzureCosmos(Environment.GetEnvironmentVariable("Azure:Cosmos:ConnectionString"));
-                    Services.AddAzureRedis(Environment.GetEnvironmentVariable("Azure:Redis:ConnectionString"));
-
-                    //s.AddSingleton<IHttpResponderService, DefaultHttpResponderService>();
-                })
-                //</docsnippet_dependency_injection>
-                .Build();
-            //</docsnippet_startup>
-
-            //<docsnippet_host_run>
-            await host.RunAsync();
-            //</docsnippet_host_run>
-        }
-    }
-}

+ 0 - 11
TEAMModelOSFunction/Properties/serviceDependencies.local.json

@@ -1,11 +0,0 @@
-{
-  "dependencies": {
-    "appInsights1": {
-      "type": "appInsights.sdk"
-    },
-    "storage1": {
-      "type": "storage.emulator",
-      "connectionId": "AzureWebJobsStorage"
-    }
-  }
-}

+ 0 - 37
TEAMModelOSFunction/TEAMModelOSFunction.csproj

@@ -1,37 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
-	<PropertyGroup>
-		<IsPackable>false</IsPackable>
-		<TargetFramework>net6.0</TargetFramework>
-		<LangVersion>preview</LangVersion>
-		<AzureFunctionsVersion>v4</AzureFunctionsVersion>
-		<OutputType>Exe</OutputType>
-		<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
-		<SignAssembly>true</SignAssembly>
-		<!--<AssemblyOriginatorKeyFile>..\..\key.snk</AssemblyOriginatorKeyFile>-->
-	</PropertyGroup>
-	<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
-		<DefineConstants>DEBUG;TRACE</DefineConstants>
-	</PropertyGroup>
-  <ItemGroup>
-        <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.CosmosDB" Version="3.0.10" />
-        <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.0.1" />
-	  <PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.6.0" />
-	  <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.0.13" />
-	  <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Storage" Version="5.0.0" />
-	  <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.ServiceBus" Version="5.0.0-beta.6" />
-	  <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.CosmosDB" Version="4.0.0-preview2" />
-	  <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Storage.Blobs" Version="5.0.0" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\TEAMModelOS.SDK\TEAMModelOS.SDK.csproj" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Update="host.json">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </None>
-    <None Update="local.settings.json">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-      <CopyToPublishDirectory>Never</CopyToPublishDirectory>
-    </None>
-  </ItemGroup>
-</Project>

+ 0 - 11
TEAMModelOSFunction/host.json

@@ -1,11 +0,0 @@
-{
-    "version": "2.0",
-    "logging": {
-        "applicationInsights": {
-            "samplingSettings": {
-                "isEnabled": true,
-                "excludedTypes": "Request"
-            }
-        }
-    }
-}

+ 0 - 7
TEAMModelOSFunction/local.settings.json

@@ -1,7 +0,0 @@
-{
-    "IsEncrypted": false,
-    "Values": {
-        "AzureWebJobsStorage": "UseDevelopmentStorage=true",
-        "FUNCTIONS_WORKER_RUNTIME": "dotnet"
-    }
-}