private void InitExecutor(string appId, string appVersion)
 {
     if (this.Executor == null)
     {
         log.WarnFormat("Peers executor is null");
         return;
     }
     this.Executor.BeforeExecute = () =>
     {
         LogTagsSetup.AddAppIdTags(appId, appVersion);
         LogTagsSetup.AddPeerTags(this);
     };
     this.Executor.AfterExecute = () => log4net.ThreadContext.Properties.Clear();
 }
        protected override IFiber CreatePeerFiber(InitRequest request)
        {
            var executor = new BeforeAfterExecutor
            {
                BeforeExecute = () =>
                {
                    LogTagsSetup.AddRequestTags(request);
                },
                AfterExecute = () => log4net.ThreadContext.Properties.Clear()
            };

            request.UserData = executor;
            return(new PoolFiber(executor));
        }