Showing the changes to Source/Libraries/GSF.ServiceProcess/ClientRequestInfo.cs (1 of 628 files). Show all
Unified · Split
| @@ -0,0 +1,76 @@ | ||
| 1 | +//****************************************************************************************************** | |
| 2 | +// ClientRequestInfo.cs - Gbtc | |
| 3 | +// | |
| 4 | +// Copyright © 2010, Grid Protection Alliance. All Rights Reserved. | |
| 5 | +// | |
| 6 | +// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See | |
| 7 | +// the NOTICE file distributed with this work for additional information regarding copyright ownership. | |
| 8 | +// The GPA licenses this file to you under the Eclipse Public License -v 1.0 (the "License"); you may | |
| 9 | +// not use this file except in compliance with the License. You may obtain a copy of the License at: | |
| 10 | +// | |
| 11 | +// http://www.opensource.org/licenses/eclipse-1.0.php | |
| 12 | +// | |
| 13 | +// Unless agreed to in writing, the subject software distributed under the License is distributed on an | |
| 14 | +// "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the | |
| 15 | +// License for the specific language governing permissions and limitations. | |
| 16 | +// | |
| 17 | +// Code Modification History: | |
| 18 | +// ---------------------------------------------------------------------------------------------------- | |
| 19 | +// 05/02/2007 - Pinal C. Patel | |
| 20 | +// Generated original version of source code. | |
| 21 | +// 09/14/2009 - Stephen C. Wills | |
| 22 | +// Added new header and license agreement. | |
| 23 | +// 10/8/2012 - Danyelle Gilliam | |
| 24 | +// Modified Header | |
| 25 | +// | |
| 26 | +//****************************************************************************************************** | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | +using System; | |
| 31 | + | |
| 32 | +namespace GSF.ServiceProcess | |
| 33 | +{ | |
| 34 | + /// <summary> | |
| 35 | + /// Represents information about a <see cref="ClientRequest"/> sent by <see cref="ClientHelper"/>. | |
| 36 | + /// </summary> | |
| 37 | + /// <seealso cref="ClientInfo"/> | |
| 38 | + /// <seealso cref="ClientRequest"/> | |
| 39 | + public class ClientRequestInfo | |
| 40 | + { | |
| 41 | + #region [ Constructors ] | |
| 42 | + | |
| 43 | + /// <summary> | |
| 44 | + /// Initializes a new instance of the <see cref="ClientRequestInfo"/> class. | |
| 45 | + /// </summary> | |
| 46 | + /// <param name="sender"><see cref="ClientInfo"/> object of the <paramref name="request"/> sender.</param> | |
| 47 | + /// <param name="request"><see cref="ClientRequest"/> object sent by the <paramref name="sender"/>.</param> | |
| 48 | + public ClientRequestInfo(ClientInfo sender, ClientRequest request) | |
| 49 | + { | |
| 50 | + Request = request; | |
| 51 | + Sender = sender; | |
| 52 | + ReceivedAt = DateTime.Now; | |
| 53 | + } | |
| 54 | + | |
| 55 | + #endregion | |
| 56 | + | |
| 57 | + #region [ Properties ] | |
| 58 | + | |
| 59 | + /// <summary> | |
| 60 | + /// Gets or sets the <see cref="ClientInfo"/> object of the <see cref="Request"/> sender. | |
| 61 | + /// </summary> | |
| 62 | + public ClientInfo Sender { get; set; } | |
| 63 | + | |
| 64 | + /// <summary> | |
| 65 | + /// Gets or sets the <see cref="ClientRequest"/> object sent by the <see cref="Sender"/>. | |
| 66 | + /// </summary> | |
| 67 | + public ClientRequest Request { get; set; } | |
| 68 | + | |
| 69 | + /// <summary> | |
| 70 | + /// Gets or sets the <see cref="DateTime"/> when the <see cref="Request"/> was received from the <see cref="Sender"/>. | |
| 71 | + /// </summary> | |
| 72 | + public DateTime ReceivedAt { get; set; } | |
| 73 | + | |
| 74 | + #endregion | |
| 75 | + } | |
| 76 | +} | |