Created
November 19, 2010 06:53
-
-
Save noqisofon/706209 to your computer and use it in GitHub Desktop.
デモに使う送信用のメッセージオブジェクト。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace demo.ipc.util { | |
/// <summary> | |
/// 送信用のメッセージオブジェクトです。 | |
/// </summary> | |
public class RemotingNotifyMessage : MarshalByRefObject { | |
/// <summary> | |
/// | |
/// </summary> | |
/// <param name="_title"></param> | |
/// <param name="_fulltext"></param> | |
public RemotingNotifyMessage(string _title, string _fulltext) { | |
this.title_ = _title; | |
this.fulltext_ = _fulltext; | |
} | |
/// <summary> | |
/// sent イベントを発生させます。 | |
/// </summary> | |
/// <param name="message">送信元に送る文字列。</param> | |
public void performSent(string echo_message) { | |
sent( echo_message ); | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
public string title { | |
get { | |
return title_; | |
} | |
set { | |
title_ = value; | |
} | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
public string fulltext { | |
get { | |
return fulltext_; | |
} | |
set { | |
fulltext_ = value; | |
} | |
} | |
/// <summary> | |
/// 送信されたときに呼び出すイベントハンドラの型です。 | |
/// </summary> | |
/// <param name="echo_message">送信元に送る文字列。</param> | |
public delegate void sent_handler(string echo_message); | |
/// <summary> | |
/// 送信されたときに発生します。 | |
/// </summary> | |
public event sent_handler sent; | |
/// <summary> | |
/// | |
/// </summary> | |
private string title_; | |
/// <summary> | |
/// | |
/// </summary> | |
private string fulltext_; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment