📄 lwordservicewcf.svc.cs
字号:
/*
* LWordServiceWCF.svc.cs @Microsoft Visual Studio 2008 <.NET Framework 3.5>
* AfritXia
* 2008-02-13
*
* Copyright(c) http://www.AfritXia.NET/
*
*/
using System;
using System.Collections.Generic;
using System.ServiceModel;
using NET.AfritXia.MyHome.InternalService;
using NET.AfritXia.MyHome.Model.Message;
using NET.AfritXia.MyHome.ServiceInterface;
namespace NET.AfritXia.MyHome.HomeAppServer
{
/// <summary>
/// 留言服务类
/// </summary>
public class LWordServiceWCF : ILWordService
{
// 内置实现对象
private ILWordService m_internalService = null;
#region 类构造器
/// <summary>
/// 类默认构造器
/// </summary>
public LWordServiceWCF()
{
this.m_internalService = new LWordService();
}
#endregion
#region ILWordService Members
public void Append(LWord newLWord)
{
this.m_internalService.Actor = OperationContext.Current.IncomingMessageHeaders
.GetHeader<string>("Actor", "NET.AfritXia");
this.m_internalService.Append(newLWord);
}
public void Delete(int lwordUID)
{
this.m_internalService.Actor = OperationContext.Current.IncomingMessageHeaders
.GetHeader<string>("Actor", "NET.AfritXia");
this.m_internalService.Delete(lwordUID);
}
public IList<LWord> ViewLWordList(int startRecord, int maxRecords, out int allRecordCount)
{
allRecordCount = 0;
this.m_internalService.Actor = OperationContext.Current.IncomingMessageHeaders
.GetHeader<string>("Actor", "NET.AfritXia");
return this.m_internalService.ViewLWordList(startRecord, maxRecords, out allRecordCount);
}
#endregion
#region IService Members
public string Actor
{
set
{
throw new NotSupportedException();
}
get
{
throw new NotSupportedException();
}
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -