Пример #1
0
        /// <summary>
        /// Create FieldWorksInfo instance in the FieldWorksDomain, and return a proxy.
        /// Or return previous created proxy.
        /// </summary>
        internal FieldWorksInfo GetFieldWorksInfo()
        {
            if (m_fieldWorksInfo != null)
            {
                return(m_fieldWorksInfo);
            }

            try
            {
                m_FieldWorksDomain.Load(Assembly.GetExecutingAssembly().GetName());
                m_fieldWorksInfo = (FieldWorksInfo)m_FieldWorksDomain.CreateInstanceAndUnwrap(Assembly.GetExecutingAssembly().FullName, "LinuxSmokeTest.FieldWorksInfo");
            }
            catch (Exception e)
            {
                Debug.WriteLine(e);
                throw;
            }

            return(m_fieldWorksInfo);
        }
Пример #2
0
		/// <summary>
		/// Create FieldWorksInfo instance in the FieldWorksDomain, and return a proxy.
		/// Or return previous created proxy.
		/// </summary>
		internal FieldWorksInfo GetFieldWorksInfo()
		{
			if (m_fieldWorksInfo != null)
				return m_fieldWorksInfo;

			try
			{
				m_FieldWorksDomain.Load(Assembly.GetExecutingAssembly().GetName());
				m_fieldWorksInfo = (FieldWorksInfo)m_FieldWorksDomain.CreateInstanceAndUnwrap(Assembly.GetExecutingAssembly().FullName, "LinuxSmokeTest.FieldWorksInfo");
			}
			catch(Exception e)
			{
				Debug.WriteLine(e);
				throw;
			}

			return m_fieldWorksInfo;
		}