##// END OF EJS Templates
Добавлена метка v3.0.14 для набора изменений 95896f882995
Добавлена метка v3.0.14 для набора изменений 95896f882995

File last commit:

r288:90cef6117ced v3
r290:d1de82f869c9 v3
Show More
Program.cs
42 lines | 894 B | text/x-csharp | CSharpLexer
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Dynamic;
using System.Linq;
using Implab.Components;
using Implab.Diagnostics;
using Implab.ServiceHost.Unity;
using Implab.Xml;
using Unity;
using Unity.Injection;
using Unity.Registration;
namespace Implab.Playground {
using System.Reactive.Linq;
using static Trace<Bar>;
class Foo {
}
class Bar : Foo {
}
public class Program {
static void Main(string[] args) {
Trace<Foo>.Log("First!");
Log("+1!");
using(TraceRegistry.Global.OfType<TraceSourceChannel>().Subscribe(ch => {
Console.WriteLine($"{ch.Id}: {ch.Source.Name}");
})) {
Trace<Foo>.Log("Hi!");
Log("Respect!");
}
}
}
}