Alphashack.Graphdat.Agent.API.Begin C# (CSharp) Method

Begin() public method

public Begin ( string name ) : void
name string
return void
        public void Begin(string name)
        {
            if(Properties.Settings.Default.Debug_BeginContext) _logger(GraphdatLogType.InformationMessage, null, "Begin {0}", name);
            Context.Enter(
                name,
                () => new Timer(),
                timer => timer.Stop());
        }