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

📄 delegatecallimpl.cs

📁 基于DotNet的开源工作流引擎
💻 CS
字号:
using System;
using log4net;
using NetBpm.Workflow.Delegation;

namespace NetBpm.Workflow.Log.Impl
{
	public class DelegateCallImpl : LogDetailImpl, IDelegateCall
	{
		[NonSerialized()] private IDelegation _delegation = null;
		private String _interfaceClassName = null;
		private static readonly log4net.ILog log = LogManager.GetLogger(typeof (DelegateCallImpl));

		public String InterfaceClassName
		{
			get { return this._interfaceClassName; }
			set { this._interfaceClassName = value; }
		}

		public IDelegation Delegation
		{
			get { return this._delegation; }
			set { this._delegation = value; }
		}

		public DelegateCallImpl()
		{
		}

		public DelegateCallImpl(IDelegation delegation, Type interfaceClass)
		{
			this._delegation = delegation;
			this._interfaceClassName = interfaceClass.FullName;
			if (this._interfaceClassName.StartsWith("interface "))
			{
				this._interfaceClassName = this._interfaceClassName.Substring(10);
			}
		}

		public Type GetInterface()
		{
			Type clazz = null;
			//@portme
/*			try
			{
				clazz = typeof(DelegateCallImpl).getClassLoader().loadClass(interfaceClassName);
			}
			catch (System.Exception e)
			{
				log.Error("", e);
			}*/
			return clazz;
		}
	}
}

⌨️ 快捷键说明

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