Exemple #1
0
        public void RegisterServiceComponent(IComponentProvider provider)
        {
            if (provider.MatchAgainstNameAllowed)
            {
                /* FIXME: We will need to do proper per-process cleanup in the future */
                foreach (IComponentProvider prov in componentDirectory.FindByName(provider.MatchedName))
                {
                    componentDirectory.UnRegister(prov);
                }
            }

            componentDirectory.Register(provider);
        }
 private bool IsApplicationLive()
 {
     if (!appInstance.IsRunning)
     {
         if (directory != null)
         {
             directory.UnRegister(this);
             directory = null;
         }
         return(false);
     }
     return(true);
 }