Skip to content

Commit

Permalink
bump packages
Browse files Browse the repository at this point in the history
  • Loading branch information
katarinagud committed Oct 21, 2024
1 parent c700a2f commit 096ea21
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions Source/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ namespace RaaLabs.Edge.Connectors.OPCUA;

public class Client : ICreateSessions
{
private readonly ApplicationConfiguration _application;
private readonly ConfiguredEndpoint _endpoint;
private readonly UserIdentity _identity;
private readonly ISessionFactory _factory;
private readonly IMetricsHandler _metrics;
private readonly ILogger _logger;
readonly ApplicationConfiguration _application;
readonly ConfiguredEndpoint _endpoint;
readonly UserIdentity _identity;
readonly ISessionFactory _factory;
readonly IMetricsHandler _metrics;
readonly ILogger _logger;

public Client(ConnectorConfiguration config, ISessionFactory factory, IMetricsHandler metrics, ILogger logger)
{
Expand Down Expand Up @@ -66,7 +66,7 @@ public async Task<ISession> ConnectToServer(CancellationToken cancellationToken)
}
}

private static (ConfiguredEndpoint, UserIdentity) ConnectAnonymouslyToAnyServerOn(string url)
static (ConfiguredEndpoint, UserIdentity) ConnectAnonymouslyToAnyServerOn(string url)
{
var descriptor = new EndpointDescription(url);
descriptor.UserIdentityTokens.Add(new UserTokenPolicy(UserTokenType.Anonymous));
Expand All @@ -77,7 +77,7 @@ private static (ConfiguredEndpoint, UserIdentity) ConnectAnonymouslyToAnyServerO
return (endpoint, identity);
}

private static ApplicationConfiguration ConnectorDescription() => new()
static ApplicationConfiguration ConnectorDescription() => new()
{
ApplicationType = ApplicationType.Client,

Expand Down
12 changes: 6 additions & 6 deletions Source/Connector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ namespace RaaLabs.Edge.Connectors.OPCUA;

public class Connector : IRunAsync, IProduceEvent<OpcuaDatapointOutput>
{
private readonly ICreateSessions _sessions;
private readonly IRetrieveData _retriever;
private readonly ICreateDatapointsFromDataValues _datapoints;
private readonly ILogger _logger;
private readonly IMetricsHandler _metrics;
readonly ICreateSessions _sessions;
readonly IRetrieveData _retriever;
readonly ICreateDatapointsFromDataValues _datapoints;
readonly ILogger _logger;
readonly IMetricsHandler _metrics;

public Connector(ICreateSessions sessions, IRetrieveData retriever, ICreateDatapointsFromDataValues datapoints, ILogger logger, IMetricsHandler metrics)
{
Expand Down Expand Up @@ -51,7 +51,7 @@ public async Task Run()
}
}

private Task ConvertAndSendDataValue(NodeValue value)
Task ConvertAndSendDataValue(NodeValue value)
{
_metrics.NumberOfMessagesSent(1);
return SendDatapoint!(_datapoints.CreateDatapointFrom(value));
Expand Down
8 changes: 4 additions & 4 deletions Source/OPCUA.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<PackageReference Include="RaaLabs.Edge.Modules.Configuration" Version="1.16.3" />
<PackageReference Include="RaaLabs.Edge.Modules.EdgeHub" Version="1.16.3" />
<PackageReference Include="RaaLabs.Edge.Modules.Diagnostics" Version="1.16.3" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua" Version="1.5.374.70" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client" Version="1.5.374.70" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration" Version="1.5.374.70" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Core" Version="1.5.374.70" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Server" Version="1.5.374.118" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Client" Version="1.5.374.118" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Configuration" Version="1.5.374.118" />
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Core" Version="1.5.374.118" />
</ItemGroup>
</Project>

0 comments on commit 096ea21

Please sign in to comment.