aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs
diff options
context:
space:
mode:
authorMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
committerMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
commit00a491d93733d4625ad329b2ba8237f445364b3f (patch)
tree4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs
parent124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff)
downloadTango-00a491d9.tar.gz
Tango-00a491d9.zip
merge
Diffstat (limited to 'Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs')
-rw-r--r--Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs69
1 files changed, 0 insertions, 69 deletions
diff --git a/Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs b/Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs
index 0d2ba6c36..7736a2752 100644
--- a/Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs
+++ b/Software/Visual_Studio/Tango.Transport/TransportMessageBase.cs
@@ -5,9 +5,6 @@ using System.Reactive.Subjects;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;
-using Tango.PMR;
-using Tango.PMR.Common;
-using Tango.PMR.Integration;
namespace Tango.Transport
{
@@ -16,14 +13,6 @@ namespace Tango.Transport
/// </summary>
internal abstract class TransportMessageBase : ExtendedObject
{
- public bool AtLeastOneResponseReceived { get; set; }
-
- public String TransportComponentName { get; set; }
-
- public QueuePriority Priority { get; set; }
-
- public TransportThreadingMode ThreadingMode { get; set; }
-
/// <summary>
/// Gets or sets a value indicating whether this instance is multi response.
/// </summary>
@@ -55,13 +44,6 @@ namespace Tango.Transport
public Object Message { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether log the message before sending.
- /// </summary>
- public bool ShouldLog { get; set; }
-
- public bool Immidiate { get; set; }
-
- /// <summary>
/// Notifies the message observer of the new result.
/// </summary>
/// <param name="result">The result.</param>
@@ -73,10 +55,6 @@ namespace Tango.Transport
/// <param name="ex">The ex.</param>
public abstract void SetException(Exception ex);
- public abstract String GetActualMessageTypeName();
-
- public abstract Object GetActualMessage();
-
/// <summary>
/// Initializes a new instance of the <see cref="TransportMessageBase"/> class.
/// </summary>
@@ -91,52 +69,5 @@ namespace Tango.Transport
Direction = direction;
Serialize = toBytes;
}
-
- public static String GetActualMessageTypeName(Object obj)
- {
- String name = String.Empty;
-
- if (obj is ITangoMessage)
- {
- var message = obj.GetType().GetProperty("Message").GetValue(obj);
-
- if (message.GetType() == typeof(GenericRequest))
- {
- try
- {
- name = (message as GenericRequest).GetTypeName();
- }
- catch
- {
- name = message.GetType().Name;
- }
- }
- else if (message.GetType() == typeof(GenericResponse))
- {
- try
- {
- name = (message as GenericResponse).GetTypeName();
- }
- catch
- {
- name = message.GetType().Name;
- }
- }
- else
- {
- name = message.GetType().Name;
- }
- }
- else if (obj is MessageContainer)
- {
- name = (obj as MessageContainer).Type.ToString();
- }
- else
- {
- name = obj.GetType().Name;
- }
-
- return name;
- }
}
}