mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-28 22:55:49 +08:00
Support .netstandard2.0 (#237)
* add missing ref for build in VSO hosted VS 2017 build * project to just build Dlls * target multiple frameworks * switch to net46/netstandard1.3 * fix projects to allow for netcoreapp 2.0 build * fix networking for .Net Core 2.0: SendAsync and ReceiveAsync now frequently return synchronously even if successful. These cases had not been properly handled yet, previous versions never hit these codepaths. * fix travis build / nugets * change travis build target * fix Kestrel https option for netstandard 2.0 tested with Ua Expert against standard and ref server * Handle special case correctly, when zero bytes are received its ok, or BadTimeout will occur * simplify connect, reduce DiscoverEndpoint calls
This commit is contained in:
committed by
Erich Barnstedt
parent
2178fcdb4e
commit
d850f64f81
@@ -137,9 +137,8 @@ namespace NetCoreConsoleClient
|
||||
|
||||
Console.WriteLine("3 - Create a session with OPC UA server.");
|
||||
var endpointConfiguration = EndpointConfiguration.Create(config);
|
||||
var endpoint = new ConfiguredEndpoint(selectedEndpoint.Server, endpointConfiguration);
|
||||
endpoint.Update(selectedEndpoint);
|
||||
var session = await Session.Create(config, endpoint, true, ".Net Core OPC UA Console Client", 60000, new UserIdentity(new AnonymousIdentityToken()), null);
|
||||
var endpoint = new ConfiguredEndpoint(null, selectedEndpoint, endpointConfiguration);
|
||||
var session = await Session.Create(config, endpoint, false, ".Net Core OPC UA Console Client", 60000, new UserIdentity(new AnonymousIdentityToken()), null);
|
||||
|
||||
Console.WriteLine("4 - Browse the OPC UA server namespace.");
|
||||
ReferenceDescriptionCollection references;
|
||||
|
||||
Reference in New Issue
Block a user