reference.cs
来自「该项目中对 SQLHelper 类进行了简单封装」· CS 代码 · 共 106 行
CS
106 行
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace NET.AfritXia.MyHome.HomeStart.HomeAppServer.ArticleServiceRef
{
using System;
using System.Collections.Generic;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.ServiceModel;
using System.ServiceModel.Channels;
using NET.AfritXia.MyHome.Model.Message;
using NET.AfritXia.MyHome.ServiceInterface;
[DebuggerStepThroughAttribute()]
[GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class ArticleServiceClient : ClientBase<IArticleService>, IArticleService
{
// 活动用户名称
private string m_actor = null;
#region 类构造器
public ArticleServiceClient()
{
}
public ArticleServiceClient(string endpointConfigurationName) :
base(endpointConfigurationName)
{
}
public ArticleServiceClient(string endpointConfigurationName, string remoteAddress) :
base(endpointConfigurationName, remoteAddress)
{
}
public ArticleServiceClient(string endpointConfigurationName, EndpointAddress remoteAddress) :
base(endpointConfigurationName, remoteAddress)
{
}
public ArticleServiceClient(Binding binding, EndpointAddress remoteAddress) :
base(binding, remoteAddress)
{
}
#endregion
public void Append(Article newArticle)
{
throw new NotSupportedException("不支持该操作 ( Not supported ) ");
}
public void Delete(int articleUID)
{
throw new NotSupportedException("不支持该操作 ( Not supported ) ");
}
public void Update(Article newArticle)
{
throw new NotSupportedException("不支持该操作 ( Not supported ) ");
}
public IList<Article> GetArticleList(int orderGist, int startRecord, int maxRecords, out int allRecordCount)
{
using (OperationContextScope scope = new OperationContextScope(base.InnerChannel))
{
OperationContext.Current.OutgoingMessageHeaders.Add(
MessageHeader.CreateHeader("Actor", "NET.AfritXia", this.Actor));
return base.Channel.GetArticleList(orderGist, startRecord, maxRecords, out allRecordCount);
}
}
public Article ViewArticle(int articleUID)
{
using (OperationContextScope scope = new OperationContextScope(base.InnerChannel))
{
OperationContext.Current.OutgoingMessageHeaders.Add(
MessageHeader.CreateHeader("Actor", "NET.AfritXia", this.Actor));
return base.Channel.ViewArticle(articleUID);
}
}
public string Actor
{
set
{
this.m_actor = value;
}
get
{
return this.m_actor;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?