//****************************************************************************************************** // Message.cs - Gbtc // // Copyright © 2012, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NOTICE file distributed with this work for additional information regarding copyright ownership. // The GPA licenses this file to you under the MIT License (MIT), the "License"; you may // not use this file except in compliance with the License. You may obtain a copy of the License at: // // http://www.opensource.org/licenses/MIT // // Unless agreed to in writing, the subject software distributed under the License is distributed on an // "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the // License for the specific language governing permissions and limitations. // // Code Modification History: // ---------------------------------------------------------------------------------------------------- // 10/06/2010 - Pinal C. Patel // Generated original version of source code. // 03/11/2011 - Pinal C. Patel // Marked the class with Serializable attribute and changed properties to field for serialization. // 12/20/2012 - Starlynn Danyelle Gilliam // Modified Header. // //****************************************************************************************************** using System; namespace GSF.ServiceBus { #region [ Enumerations ] /// /// Indicates how a is distributed by the . /// public enum MessageType { /// /// is distributed to all of its registered consumers. /// Topic, /// /// is distributed to the first of all its registered consumers. /// Queue } #endregion /// /// Represents a message that can be used to exchange information between processes using . /// [Serializable] public class Message { #region [ Members ] // Fields /// /// Gets or sets the when this was created. /// public DateTime Time; /// /// Gets or sets the Type of this . /// public MessageType Type; /// /// Gets or sets the identifier of this . /// public string Name; /// /// Gets or sets the format of the in this . /// public string Format; /// /// Gets or sets the actual payload of this . /// public byte[] Content; #endregion } }