Exemplo n.º 1
0
		/// <summary>
		/// Initializes a new instance.
		/// </summary>
		public ReleaserClient()
		{
			RemotingConfiguration.Configure(
				AppDomain.CurrentDomain.SetupInformation.ConfigurationFile,
				true);

			m_engine = (IReleaserEngine)Activator.GetObject(typeof(IReleaserEngine), s_url);

			ProjectData projectData = m_engine.GetProjects();
			m_projectIds = projectData.Project
				.Select()
				.Cast<ProjectData.ProjectRow>()
				.Where(row => row.StorageCode == "PublicationStorage")
				.ToDictionary(row => row.StoragePath, row => row.ProjectUid);
		}
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        public ReleaserClient()
        {
            RemotingConfiguration.Configure(
                AppDomain.CurrentDomain.SetupInformation.ConfigurationFile,
                true);

            m_engine = (IReleaserEngine)Activator.GetObject(typeof(IReleaserEngine), s_url);

            ProjectData projectData = m_engine.GetProjects();

            m_projectIds = projectData.Project
                           .Select()
                           .Cast <ProjectData.ProjectRow>()
                           .Where(row => row.StorageCode == "PublicationStorage")
                           .ToDictionary(row => row.StoragePath, row => row.ProjectUid);
        }