This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Concurrent; | |
using System.Diagnostics; | |
using Azure.Storage.Blobs; | |
using Microsoft.ApplicationInsights; | |
using Microsoft.ApplicationInsights.Extensibility; | |
using Microsoft.Azure.Functions.Worker; | |
using Microsoft.Azure.Functions.Worker.Http; | |
using Microsoft.Extensions.Logging; | |
namespace Isolated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Azure.Messaging.EventHubs; | |
using Azure.Messaging.EventHubs.Producer; | |
using System.Text; | |
string connectionString = "<EH CONNSTRING>"; | |
string eventHubName = "test"; | |
int numOfEventsPerBatch = 10; | |
EventHubProducerClient producerClient = new EventHubProducerClient(connectionString, eventHubName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG HOST_VERSION=3.2.0 | |
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS installer-env | |
ARG HOST_VERSION | |
COPY --from=mcr.microsoft.com/dotnet/core/sdk:3.1 /usr/share/dotnet /usr/share/dotnet | |
COPY . /src/dotnet-function-app | |
RUN cd /src/dotnet-function-app && \ | |
mkdir -p /home/site/wwwroot && \ | |
dotnet publish *.csproj --output /home/site/wwwroot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using System.Reflection; | |
using System.Runtime.Loader; | |
namespace ProxyBuilderRepro | |
{ | |
public class MyLoadContext : AssemblyLoadContext | |
{ | |
public MyLoadContext(string name) | |
: base(name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ScheduleStatus | |
{ | |
public DateTime Last { get; set; } | |
public DateTime Next { get; set; } | |
public DateTime LastUpdated { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions.Http; | |
using Microsoft.Extensions.Logging; | |
namespace FunctionApp75 | |
{ | |
public static class Function1 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Autofac | |
dotnet-aspnet-codegenerator-design | |
DotNetTI.BreakingChangeAnalysis | |
Google.Protobuf | |
Grpc.Core | |
Grpc.Core.Api | |
Marklio.Metadata | |
Microsoft.AI.DependencyCollector | |
Microsoft.AI.EventCounterCollector | |
Microsoft.AI.PerfCounterCollector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Autofac | |
dotnet-aspnet-codegenerator-design | |
DotNetTI.BreakingChangeAnalysis | |
Google.Protobuf | |
Grpc.Core | |
Grpc.Core.Api | |
Marklio.Metadata | |
Microsoft.AI.DependencyCollector | |
Microsoft.AI.EventCounterCollector | |
Microsoft.AI.PerfCounterCollector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static async Task Main(string[] args) | |
{ | |
var connStr = ""; | |
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connStr); | |
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); | |
CloudBlobContainer container = blobClient.GetContainerReference("samples-workitems"); | |
var _cancelTimeout = TimeSpan.FromMinutes(2); | |
container.CreateIfNotExists(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions.Http; | |
using Microsoft.Extensions.Logging; | |
using Newtonsoft.Json; | |
namespace MyNamespace |
NewerOlder