-
-
Save TomW-Skyline/188d70e8cb775087e7718359fab9a158 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 Skyline.DataMiner.Analytics.GenericInterface; | |
using Skyline.DataMiner.Core.DataMinerSystem.Common; | |
using Skyline.DataMiner.Net; | |
using Skyline.DataMiner.Net.Messages; | |
public class GqiDmsConnection : ICommunication | |
{ | |
private readonly GQIDMS _gqiDms; | |
public GqiDmsConnection(GQIDMS gqiDms) | |
{ | |
_gqiDms = gqiDms ?? throw new ArgumentNullException(nameof(gqiDms)); | |
} | |
public DMSMessage[] SendMessage(DMSMessage message) | |
{ | |
return _gqiDms.SendMessages(message); | |
} | |
public DMSMessage SendSingleResponseMessage(DMSMessage message) | |
{ | |
return _gqiDms.SendMessage(message); | |
} | |
public DMSMessage SendSingleRawResponseMessage(DMSMessage message) | |
{ | |
return _gqiDms.SendMessage(message); | |
} | |
public void AddSubscriptionHandler(NewMessageEventHandler handler) | |
{ | |
throw new NotSupportedException(); | |
} | |
public void AddSubscriptions(NewMessageEventHandler handler, string handleGuid, SubscriptionFilter[] subscriptions) | |
{ | |
throw new NotSupportedException(); | |
} | |
public void AddSubscriptions(NewMessageEventHandler handler, string setId, string internalHandleIdentifier, SubscriptionFilter[] subscriptions) | |
{ | |
throw new NotSupportedException(); | |
} | |
public void ClearSubscriptionHandler(NewMessageEventHandler handler) | |
{ | |
throw new NotSupportedException(); | |
} | |
public void ClearSubscriptions(NewMessageEventHandler handler, string handleGuid, bool replaceWithEmpty = false) | |
{ | |
throw new NotSupportedException(); | |
} | |
public void ClearSubscriptions(string setId, string internalHandleIdentifier, SubscriptionFilter[] subscriptions, bool force = false) | |
{ | |
throw new NotSupportedException(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment