Пример #1
0
        public void RegisterLocallyKnownMediaItemAspectType(MediaItemAspectMetadata miaType)
        {
            if (_locallyKnownMediaItemAspectTypes.ContainsKey(miaType.AspectId))
            {
                return;
            }
            _locallyKnownMediaItemAspectTypes.Add(miaType.AspectId, miaType);
            IServerConnectionManager serverConnectionManager = ServiceRegistration.Get <IServerConnectionManager>();
            IContentDirectory        cd = serverConnectionManager == null ? null :
                                          serverConnectionManager.ContentDirectory;

            if (cd != null)
            {
                cd.AddMediaItemAspectStorage(miaType);
            }
        }