Skip to content

Instantly share code, notes, and snippets.

@TomW-Skyline
Created November 17, 2023 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TomW-Skyline/188d70e8cb775087e7718359fab9a158 to your computer and use it in GitHub Desktop.
Save TomW-Skyline/188d70e8cb775087e7718359fab9a158 to your computer and use it in GitHub Desktop.
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