Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
469 changes: 367 additions & 102 deletions .editorconfig

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions Samples/Client.Net4/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2005-2019 The OPC Foundation, Inc. All rights reserved.
*
* OPC Foundation MIT License 1.00
*
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
Expand All @@ -11,7 +11,7 @@
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Expand Down Expand Up @@ -47,23 +47,23 @@ static void Main()

ApplicationInstance.MessageDlg = new ApplicationMessageDlg();
ApplicationInstance application = new ApplicationInstance();
application.ApplicationName = "UA Sample Client";
application.ApplicationType = ApplicationType.ClientAndServer;
application.ApplicationName = "UA Sample Client";
application.ApplicationType = ApplicationType.ClientAndServer;
application.ConfigSectionName = "Opc.Ua.SampleClient";

try
{
application.LoadApplicationConfiguration(false).Wait();
application.LoadApplicationConfigurationAsync(false).AsTask().GetAwaiter().GetResult();

// check the application certificate.
bool certOK = application.CheckApplicationInstanceCertificates(false).Result;
bool certOK = application.CheckApplicationInstanceCertificatesAsync(false).AsTask().Result;
if (!certOK)
{
throw new Exception("Application instance certificate invalid!");
}

// start the server.
application.Start(new SampleServer()).Wait();
application.StartAsync(new SampleServer()).Wait();

// run the application interactively.
Application.Run(new SampleClientForm(application, null, application.ApplicationConfiguration));
Expand Down
6 changes: 3 additions & 3 deletions Samples/Client.Net4/SampleClientForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public SampleClientForm()
}

public SampleClientForm(
ApplicationInstance application,
ClientForm masterForm,
ApplicationInstance application,
ClientForm masterForm,
ApplicationConfiguration configuration)
:
base(configuration.CreateMessageContext(), application, masterForm, configuration)
Expand All @@ -71,7 +71,7 @@ void CertificateValidator_CertificateValidation(CertificateValidator validator,
}
catch (Exception exception)
{
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions Samples/Client.Net4/UA Sample Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<UseVSHostingProcess>false</UseVSHostingProcess>
<PlatformTarget>AnyCPU</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -48,6 +49,7 @@
<UseVSHostingProcess>false</UseVSHostingProcess>
<PlatformTarget>AnyCPU</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down Expand Up @@ -135,10 +137,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions">
<Version>9.0.6</Version>
<Version>9.0.8</Version>
</PackageReference>
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Bindings.Https">
<Version>1.5.376.244</Version>
<Version>1.5.377.11-preview</Version>
</PackageReference>
<PackageReference Include="System.Net.Http">
<Version>4.3.4</Version>
Expand Down
Loading
Loading