System.Runtime.Remoting.Contexts.SynchronizationAttribute.GetPropertiesForNewContext C# (CSharp) Метод

GetPropertiesForNewContext() приватный Метод

private GetPropertiesForNewContext ( IConstructionCallMessage ctorMsg ) : void
ctorMsg IConstructionCallMessage
Результат void
        public override void GetPropertiesForNewContext(IConstructionCallMessage ctorMsg)
        {
            if ( (_flavor==NOT_SUPPORTED) || (_flavor==SUPPORTED) || (null == ctorMsg) )
            {
                return ;
            }

            if (_cliCtxAttr != null)
            {
                BCLDebug.Assert(_flavor == REQUIRED,"Use cli-ctx property only for the REQUIRED flavor");
                ctorMsg.ContextProperties.Add((IContextProperty)_cliCtxAttr);
                _cliCtxAttr = null;
            }
            else
            {
                ctorMsg.ContextProperties.Add((IContextProperty)this);
            }
        }