Class1.cs
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:1k
- using System;
- using System.EnterpriseServices;
- namespace Wrox.ProCSharp.EnterpriseServices
- {
- public interface IGreeting
- {
- string Welcome(string name);
- }
- [Description("Simple Serviced Component Sample")]
- [EventTrackingEnabled(true)]
- public class SimpleComponent : ServicedComponent, IGreeting
- {
- public SimpleComponent()
- {
- }
- #region IGreeting Members
- public string Welcome(string name)
- {
- // simulate some processing time
- System.Threading.Thread.Sleep(1000);
- return "Hello, " + name;
- }
- #endregion
- }
- }