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 interface IContainer : IDisposable | |
{ | |
void Add(Type contract, Type service); | |
object Resolve(Type contract); | |
} | |
/// <summary> | |
/// this contaier is a simple container which handles all contracts as singletons | |
/// </summary> |
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; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net.Mime; | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Resources; | |
using System.Runtime.CompilerServices; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace FluentRegex | |
{ |
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
namespace Indexing2 | |
{ | |
using System; | |
using Nest; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var settings = new ConnectionSettings(new Uri("http://index:9200")); |
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
namespace ContainerTest | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Castle.Core; | |
using Castle.MicroKernel; | |
using Castle.MicroKernel.Context; | |
using Castle.MicroKernel.Lifestyle; | |
using Castle.MicroKernel.Registration; |
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 WindsorJobActivator : JobActivator | |
{ | |
private readonly IWindsorContainer _container; | |
public WindsorJobActivator(IWindsorContainer container) | |
{ | |
_container = container; | |
} |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web.Http; | |
using System.Web.Http.Tracing; | |
using System.Reflection; | |
using Owin; |
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
app-lb: | |
ports: | |
- 80:80 | |
labels: | |
io.rancher.scheduler.affinity:host_label: server=proxy | |
io.rancher.loadbalancer.target.result: result.app:80=80 | |
io.rancher.loadbalancer.target.vote: vote.app:80=80 | |
tty: true | |
image: rancher/load-balancer-service | |
links: |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: fluentdconf | |
namespace: kube-logging | |
data: | |
fluent.conf: |- | |
# AUTOMATICALLY GENERATED | |
# DO NOT EDIT THIS FILE DIRECTLY, USE /templates/conf/fluent.conf.erb |