Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<Project>
<PropertyGroup>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>full</DebugType>
<CodeAnalysisRuleSet>..\Internal\Code Analysis\qaction-debug.ruleset</CodeAnalysisRuleSet>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,46 +1,8 @@
/*
****************************************************************************
* Copyright (c) 2025, Skyline Communications NV All Rights Reserved. *
* Copyright (c), Skyline Communications NV All Rights Reserved. *
****************************************************************************

By using this script, you expressly agree with the usage terms and
conditions set out below.
This script and all related materials are protected by copyrights and
other intellectual property rights that exclusively belong
to Skyline Communications.

A user license granted for this script is strictly for personal use only.
This script may not be used in any way by anyone without the prior
written consent of Skyline Communications. Any sublicensing of this
script is forbidden.

Any modifications to this script by the user are only allowed for
personal use and within the intended purpose of the script,
and will remain the sole responsibility of the user.
Skyline Communications will not be responsible for any damages or
malfunctions whatsoever of the script resulting from a modification
or adaptation by the user.

The content of this script is confidential information.
The user hereby agrees to keep this confidential information strictly
secret and confidential and not to disclose or reveal it, in whole
or in part, directly or indirectly to any person, entity, organization
or administration without the prior written consent of
Skyline Communications.

Any inquiries can be addressed to:

Skyline Communications NV
Ambachtenstraat 33
B-8870 Izegem
Belgium
Tel. : +32 51 31 35 69
Fax. : +32 51 31 01 29
E-mail : info@skyline.be
Web : www.skyline.be
Contact : Ben Vandenberghe

****************************************************************************
Revision History:

DATE VERSION AUTHOR COMMENTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Skyline.DataMiner.Core.DataMinerSystem.Automation" Version="1.1.3.4" />
<PackageReference Include="Skyline.DataMiner.Dev.Automation" Version="10.5.10" />
<PackageReference Include="Skyline.DataMiner.ProjectApi.ServiceManagement" Version="1.0.1-alpha.19" />
<PackageReference Include="Skyline.DataMiner.Core.DataMinerSystem.Automation" Version="1.1.3.8" />
<PackageReference Include="Skyline.DataMiner.Dev.Automation" Version="10.6.3" />
<PackageReference Include="Skyline.DataMiner.ProjectApi.ServiceManagement" Version="1.0.1-alpha.20" />
<PackageReference Include="Skyline.DataMiner.Utils.SecureCoding.Analyzers" Version="2.2.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
22 changes: 22 additions & 0 deletions Get Service Items Multisection/ImplementationItemInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
namespace SLC_SM_GQIDS_Get_Service_Items
{
// Used to process the Service Items
using System;

internal sealed class ImplementationItemInfo
{
public string Name { get; set; } = String.Empty;

public string ServiceId { get; set; } = String.Empty;

public string State { get; set; } = String.Empty;

public string CustomLink { get; set; } = String.Empty;

public string MonServiceState { get; set; } = String.Empty;

public string MonServiceDmaIdSid { get; set; } = String.Empty;

public string LogLocation { get; set; } = String.Empty;
}
}
45 changes: 45 additions & 0 deletions Get Service Items Multisection/ReservationWatcher.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
namespace SLC_SM_GQIDS_Get_Service_Items
{
using System;
using Skyline.DataMiner.Analytics.GenericInterface;
using Skyline.DataMiner.Net;
using Skyline.DataMiner.Net.Messages;

internal sealed class ReservationWatcher : IDisposable
{
private readonly IConnection _connection;
private readonly string setId = Guid.NewGuid().ToString();

internal ReservationWatcher(IConnection connection)
{
_connection = connection ?? throw new GenIfException("Could not create a connection.");

var subscriptionFilter = new SubscriptionFilter(typeof(ResourceManagerEventMessage));
_connection.OnNewMessage += Connection_OnNewMessage;
_connection.AddSubscription(setId, subscriptionFilter);
}

internal event EventHandler<ResourceManagerEventMessage> OnChanged;

public void Dispose()
{
try
{
_connection?.Unsubscribe();
_connection?.Dispose();
}
catch (Exception)
{
// Ignore
}
}

private void Connection_OnNewMessage(object sender, NewMessageEventArgs e)
{
if (e.Message is ResourceManagerEventMessage change)
{
OnChanged?.Invoke(this, change);
}
}
}
}
Loading