Contextual info : Context : Development C# Examples


C# Examples » Development » Context »

 

Contextual info









    
using  System;
using  System.Runtime.Remoting.Contexts;
using  System.Threading;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        Context  ctx  =  Thread.CurrentContext;
        Console.WriteLine("Info  about  context  {0}",  ctx.ContextID);

        foreach(IContextProperty  itfCtxProp  in  ctx.ContextProperties)
            Console.WriteLine("->  Ctx  Prop:  {0}",  itfCtxProp.Name);
    }
}
    
   
  
   



Output

Info about context 0
-> Ctx Prop: LeaseLifeTimeServiceProperty


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Context