UA-.NETStandard

所属分类:Windows编程
开发工具:C#
文件大小:10895KB
下载次数:17
上传日期:2019-07-29 16:20:06
上 传 者necheyhin_a_v
说明:  Official OPC UA .Net Standard Stack and Samples from the OPC Foundation

文件列表:
UA-.NETStandard (0, 2019-07-23)
UA-.NETStandard\.nuget (0, 2019-07-23)
UA-.NETStandard\.nuget\NuGet.Config (319, 2019-07-23)
UA-.NETStandard\.travis.yml (4591, 2019-07-23)
UA-.NETStandard\ComIOP (0, 2019-07-23)
UA-.NETStandard\ComIOP\Common (0, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client (0, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae (0, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\AeAreaBrowser.cs (9347, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\AeAreaState.cs (5277, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\AeConditionState.cs (2934, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\AeEventTypeState.cs (8122, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\AeModelUtils.cs (5232, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\AeParseNodeId.cs (13442, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\AeSourceState.cs (3657, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\AeTypeCache.cs (21536, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\ComAeBrowserClient.cs (13807, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\ComAeClient.cs (15143, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\ComAeClientConfiguration.cs (2571, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\ComAeClientManager.cs (5281, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\ComAeClientNodeManager.cs (29849, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\ComAeEventCallback.cs (4512, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Ae\ComAeSubscriptionClient.cs (28802, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\ComClient.cs (9969, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\ComClientConfiguration.cs (5707, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\ComClientManager.cs (13284, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\ComClientNodeManager.cs (6795, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\ComConnectionPoint.cs (4176, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\ComEnumString.cs (7429, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\ComItemIdParser.cs (3954, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\ComObject.cs (7358, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\ComShutdownCallback.cs (3773, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\ComWrapperServer.cs (13443, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\ComWrapperServerConfiguration.cs (2932, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Da (0, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Da\ComDaClient.cs (62660, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Da\ComDaClientConfiguration.cs (2946, 2019-07-23)
UA-.NETStandard\ComIOP\Common\Client\Da\ComDaClientManager.cs (5291, 2019-07-23)
... ...

# Official OPC UA .Net Standard Stack and Samples from the OPC Foundation ## Overview This OPC UA reference implementation is targeting [.NET Standard](https://docs.microsoft.com/en-us/dotnet/standard/net-standard) . .Net Standard allows you develop apps that run on all common platforms available today, including Linux, iOS, Android (via Xamarin) and Windows 7/8/8.1/10 (including embedded/IoT editions) without requiring platform-specific modifications. One of the reference implementations inside this project has been certified for compliance through an OPC Foundation Certification Test Lab to prove its high quality. Fixes and enhancements since the certification process have been tested and verified for compliance using the Compliance Test Tool (CTT) V1.03. Furthermore, cloud applications and services (such as ASP.Net, DNX, Azure Websites, Azure Webjobs, Azure Nano Server and Azure Service Fabric) are also supported. ## For more information and license terms, see [here](http://opcfoundation.github.io/UA-.NETStandard). ## Features included 1. Fully ported Core UA stack and SDK (Client, Server, Configuration & Sample assemblies) 2. Sample Servers and Clients, including all required controls, for .Net 4.6, .NetCore 2.0 and UWP. 3. X.509 certificate support for client and server authentication. 4. SHA-2 support (up to SHA512) including security profile Basic256Sha256 for configurations with high security needs. 5. Anonymous, username and X.509 certificate user authentication. 6. UA-TCP & HTTPS transports (client and server). 7. Folder & OS-level (X509Store) certificate-store support. 8. Sessions (including UI support in the samples). 9. Subscriptions (including UI support in the samples). 10. OPC UA [Reference Server](SampleApplications/Workshop/Reference/README.md). 11. OPC UA [Aggregation Server](SampleApplications/Workshop/Aggregation/README.md). 12. [OPC Classic adapter for OPC UA](ComIOP/README.md). 13. OPC UA [Global Discovery Client and Global Discovery Server](SampleApplications/Samples/GDS/README.md). 14. OPC UA [Xamarin Client](SampleApplications/Samples/XamarinClient/readme.md). 15. OPC UA [Quickstart Samples](SampleApplications/Workshop). 16. OPC UA [Reference Server](SampleApplications/Workshop/Reference/README.md) has been certified for compliance through an OPC Foundation Certification Test Lab. Fixes and enhancements since the certification process have been tested and verified for compliance using the Compliance Test Tool (CTT) Version [1.03.340.380](https://opcfoundation.org/developer-tools/certification-test-tools/ua-compliance-test-tool-uactt/). 16. An official OPC UA [Nuget](https://www.nuget.org/packages/OPCFoundation.NetStandard.Opc.Ua/) package of the core, client, server and configuration libraries is available for integration in .Net projects. 17. The Core UA stack and SDK has been tested with Mono 5.4 to add support for the [Xamarin Client](SampleApplications/Samples/XamarinClient/readme.md) and the Mono console application samples. ## Getting Started All the tools you need for .Net Standard come with the .Net Core tools. See [here](https://docs.microsoft.com/en-us/dotnet/articles/core/getting-started) for what you need. ## Self signed certificates for the sample applications All required application certificates for OPC UA are created at the first start of each application in a directory or OS-level certificate store and remain in use until deleted from the store. ### Windows .Net applications By default the self signed certificates are stored in a **X509Store** called **CurrentUser\\UA_MachineDefault**. The certificates can be viewed or deleted with the Windows Certificate Management Console (certmgr.msc). The *trusted*, *issuer* and *rejected* stores remain in a folder called **OPC Foundation\CertificateStores** with a root folder which is specified by the `SpecialFolder` variable **%CommonApplicationData%**. On Windows 7/8/8.1/10 this is usually the invisible folder **C:\ProgramData**. Note: Since the sample applications in the UA-.Net repository use the same storage and application names as UA-.NetStandard, but create only certificates with hostname `localhost`, it is recommended to delete all existing certificates in **MachineDefault** to recreate proper certificates for all sample applications when moving to the UA-.NetStandard repository. ### Windows UWP applications By default the self signed certificates are stored in a **X509Store** called **CurrentUser\\UA_MachineDefault**. The certificates can be viewed or deleted with the Windows Certificate Management Console (certmgr.msc). The *trusted*, *issuer* and *rejected* stores remain in a folder called **OPC Foundation\CertificateStores** in the **LocalState** folder of the installed universal windows package. Deleting the application state also deletes the certificate stores. ### .Net Standard Console applications on Windows, Linux, iOS etc. The self signed certificates are stored in a folder called **OPC Foundation/CertificateStores/MachineDefault** with a root folder which is specified by the `SpecialFolder` variable **%LocalApplicationData%** or in a **X509Store** called **CurrentUser\\My**, depending on the configuration. For best cross platform support the personal store **CurrentUser\\My** was chosen to support all platforms with the same configuration. Some platforms, like macOS, do not support arbitrary certificate stores. The *trusted*, *issuer* and *rejected* stores remain in a shared folder called **OPC Foundation\CertificateStores** with a root folder specified by the `SpecialFolder` variable **%LocalApplicationData%**. Depending on the target platform, this folder maps to a hidden locations under the user home directory. ## Local Discovery Server By default all sample applications are configured to register with a Local Discovery Server (LDS). A reference implementation of a LDS for Windows can be downloaded [here](https://opcfoundation.org/developer-tools/developer-kits-unified-architecture/local-discovery-server-lds). To setup trust with the LDS the certificates need to be exchanged or registration will fail. ## How to build and run the samples in Visual Studio on Windows 1. Open the UA-NetStandard.sln solution file using Visual Studio 2017. 2. Choose a project in the Solution Explorer and set it with a right click as `Startup Project`. 3. Hit `F5` to build and execute the sample. ## How to build and run the console samples on Windows, Linux and iOS This section describes how to run the **NetCoreConsoleClient** and **NetCoreConsoleServer** sample applications. Please follow instructions in this [article](https://aka.ms/dotnetcoregs) to setup the dotnet command line environment for your platform. As of today .Net Standard 2.0 is required. ### Prerequisites 1. Once the `dotnet` command is available, navigate to the root folder in your local copy of the repository and execute `dotnet restore UA-NetStandard.sln`. This command calls into NuGet to restore the tree of dependencies. ### Start the server 1. Open a command prompt. 2. Navigate to the folder **SampleApplications/Samples/NetCoreConsoleServer**. 3. To run the server sample type `dotnet run --project NetCoreConsoleServer.csproj -a`. - The server is now running and waiting for connections. - The `-a` flag allows to auto accept unknown certificates and should only be used to simplify testing. ### Start the client 1. Open a command prompt 2. Navigate to the folder **SampleApplications/Samples/NetCoreConsoleClient**. 3. To run the sample type `dotnet run --project NetCoreConsoleClient.csproj -a` to connect to the OPC UA console sample server running on the same host. - The `-a` flag allows to auto accept unknown certificates and should only be used to simplify testing. - To connect to another OPC UA server specify the server as first argument and type e.g. `dotnet run --project NetCoreConsoleClient.csproj -a opc.tcp://myserver:51210/UA/SampleServer`. 4. If not using the `-a` auto accept option, on first connection, or after certificates were renewed, the server may have refused the client certificate. Check the server and client folder **%LocalApplicationData%/OPC Foundation/CertificateStores/RejectedCertificates** for rejected certificates. To approve a certificate copy it to the **%LocalApplicationData%/OPC Foundation/CertificateStores/UA Applications** folder. 5. Retry step 3 to connect using a secure connection. ## How to build and run the OPC UA COM Server Wrapper - Please refer to the OPC Foundation UA .Net Standard Library [COM Server Wrapper](ComIOP/README.md) for a detailed description how to run the OPC COM wrapper. ## How to build and run the OPC UA Aggregation Client and Server - Please refer to the OPC Foundation UA .Net Standard Library [Aggregation Client and Server](SampleApplications/Workshop/Aggregation/README.md) for a detailed description how to run the aggregation client and server. ## How to build and run the OPC UA Reference Server with UACTT - Please refer to the OPC Foundation UA .Net Standard Library [Reference Server](SampleApplications/Workshop/Reference/README.md) for a detailed description how to run the reference server against the UACTT. ## How to build and run the OPC UA Xamarin Client - Please refer to the OPC UA [Xamarin Client](SampleApplications/Samples/XamarinClient/readme.md) for a detailed description how to run the UA Xamarin Client on UWP, Android and iOS. ## What happened to the OPC UA Web Telemetry sample? The web telemetry sample was removed as there is a much more complete (and better looking!) solution now available [here](https://github.com/azure/azure-iot-connected-factory). You can try this new solution, called "Connected Factory", out [here](http://www.azureiotsuite.com). ## Contributing We strongly encourage community participation and contribution to this project. First, please fork the repository and commit your changes there. Once happy with your changes you can generate a 'pull request'. You must agree to the contributor license agreement before we can accept your changes. The CLA and "I AGREE" button is automatically displayed when you perform the pull request. You can preview CLA [here](https://opcfoundation.org/license/cla/ContributorLicenseAgreementv1.0.pdf).

近期下载者

相关文件


收藏者