Skip to content

Instantly share code, notes, and snippets.

View molesinski's full-sized avatar
🏠
Working from home

Maciej Olesiński molesinski

🏠
Working from home
View GitHub Profile
@molesinski
molesinski / OcelotBuilderExtensions.cs
Created April 15, 2020 15:29
Fix Ocelot 15.0.6 Kubernetes service discovery provider
using System.Collections.Generic;
using System.Threading.Tasks;
using KubeClient;
using Microsoft.Extensions.DependencyInjection;
using Ocelot.DependencyInjection;
using Ocelot.ServiceDiscovery;
using Ocelot.ServiceDiscovery.Providers;
using Ocelot.Values;
namespace Ocelot.Provider.Kubernetes
using System;
using System.IO;
using System.Runtime.InteropServices;
internal static class IISHelper
{
public static string GetContentRoot()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && NativeMethods.IsAspNetCoreModuleLoaded())
{
using System;
namespace Infrastructure.Utils
{
public enum SequentialGuidType
{
SequentialAsString,
SequentialAsBinary,
SequentialAtEnd,
}
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Core.Metadata.Edm;
using System.Data.Entity.Infrastructure;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
public static class EntityHelper
{