⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hostcontext.cs

📁 Agent技术在智能交通中的应用
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace MobileAgents
{
	public class HostContext : MarshalByRefObject
	{
		#region Static Members...
		private static HostContext _instance = null;
		internal static void Initialize(HostContext contextForAppDomain)
		{
			_instance = contextForAppDomain;
		}
		public static HostContext Current
		{
			get { return _instance; }
		}
		#endregion

		#region Instance Members...
		private string _location = string.Empty;

		private HostContext() { }
		public HostContext(string currentHostLocation)
		{
			_location = currentHostLocation;
		}
		public string Location
		{
			get { return _location; }
		}

		//TODO: Add any other properties or services to expose
		//		for hosted agents!

		#endregion
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -