Beispiel #1
0
        public void AddImportedChild(Activity importedChild, object origin)
        {
            ThrowIfDisposed();
            ActivityUtilities.ValidateOrigin(origin, _activity);

            if (importedChild != null)
            {
                _activity.AddImportedChild(importedChild);
                if (importedChild.CacheId != _activity.CacheId)
                {
                    importedChild.Origin = origin;
                }
            }
        }