Customization using C#

Introduction

This chapter presents concepts, references and procedures to customize projects through design time and runtime logics written in C# language. These customizations are carried out in a .NET project included in the UNIQO project and can concern completely new functionality, not natively provided (for example, sending e-mail, or creating objects dynamically starting from an external data source).

Premise on Examples Format

In this chapter, many examples of C# code are present. These are the conventions used:

  • The example project nodes are shown in italics (e.g.: Motor object, Speed property).

  • Classes, variables and other elements in the .NET environment, in C# language, also when referring to project nodes, are shown in a monospaced font (e.g. Motor``object/class, ``Speed property).

Table of Contents

  • NetLogic

    Concepts and basic procedures for using C# code in a UNIQO project, testing the code and integrating third party .NET libraries

  • C# project nodes

    Concepts, reference information and code examples to understand how to reference project nodes through C# objects

  • Methods and events in C#

    Concepts, reference information and code examples for working with events and methods in C#

  • Sessions and users in C#

    Reference information and code examples for managing session properties (users and locale) through C#

  • Reading and writing CSV files

    Reference information and code examples for importing and exporting data in CSV format through C#

  • Application examples

    Examples of code to complete the Q Applications with additional functionality, or to integrate custom functionality/automations in the design phase

  • Reference information on C# APIs

    Reference information on the C# APIs exposed by UNIQO modules