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

📄 serviceproxyfactory.cs

📁 该项目中对 SQLHelper 类进行了简单封装
💻 CS
字号:
using System;

using NET.AfritXia.MyHome.HomeManagement.CodeLand;
using NET.AfritXia.MyHome.ServiceInterface;

namespace NET.AfritXia.MyHome.HomeManagement.CodeLand.ServiceProxy
{
	public sealed class ServiceProxyFactory
	{
		public static IArticleService CreateArticleService()
		{
			ArticleServiceProxy proxy = null;
			
			proxy = new ArticleServiceProxy();
			proxy.Actor = Manager.Current.FullName;

			return proxy;
		}

		public static ICommentService CreateCommentService()
		{
			CommentServiceProxy proxy = null;

			proxy = new CommentServiceProxy();
			proxy.Actor = Manager.Current.FullName;

			return proxy;
		}

		public static ILWordService CreateLWordService()
		{
			LWordServiceProxy proxy = null;

			proxy = new LWordServiceProxy();
			proxy.Actor = Manager.Current.FullName;

			return proxy;
		}

		public static IHomeAdminService CreateHomeAdminService()
		{
			HomeAdminServiceProxy proxy = null;

			proxy = new HomeAdminServiceProxy();
			proxy.Actor = Manager.Current.FullName;

			return proxy;
		}
	}
}

⌨️ 快捷键说明

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