- Request / Response
- Anywhere access
- NAT Traversal
- SOAP or REST
Tuesday, 18 July 2017
Monday, 17 July 2017
Secure B2B communications
Seure B2B communications
For securing your B2B communication, you can use two types of certificates in your enterprise integration apps
- Public certificates, which must be purchased from a certification authority (CA).
- Private certificates, which you can issue yourself. These certificates are sometimes referred to as self-signed certificates.
What are certificates?
Certificates are digital documents that verify the identity of the participants in electronic communications and that also secure electronic communications.Why use certificates?
Sometimes B2B communications must bekept confidential.Enterpriseintegration uses certificates to securethese communications in two ways:- By encrypting the contents of messages
- By digitally signing messages
Logic App
Logic App
"Logic Apps provide a way to simplify and implement scalable integrations and workflows in the cloud. It provides a visual designer to model and automate your process as a series of steps known as a workflow."
Advantage of Logic App
- Saving time by designing complex processes using easy to understand design tools
- Implementing patterns and workflows seamlessly, that would otherwise be difficult to implement in code
- Getting started quickly from templates
- Customizing your logic app with your own custom APIs,code,and actions
- Connect and synchronize disparate systems across on-premises and the cloud
- Build off of BizTalk server, API Management, Azure Functions,and Azure Service Bus with first-class integration support
Logic Apps is a fully managed iPaaS (integration Platform as aService) allowing developers not to haveto worry about building hosting, scalability,availability and management.Logic Apps will scale up automatically to meet demand.
Logic App Real world examples
- Movefiles uploaded to an FTP server into AzureStorage
- Process and route orders across on-premises and cloud systems
- Monitor all tweets abouta certain topic,analyzethesentiment,and createalerts and tasks for items needing followup.
Why Logic Apps?
- Easy to use design tools - Logic Apps can be designed end-to-end in the browser or with Visual Studio tools.
- Connect APIs easily
- Get started quickly from templates
- Real integration
Generics
Summary
- Generics feature added in C# 2.0
- A generic type uses a Type parameter instead of hard-coding all the types.
Why Generics?
- Elimination of casts.
- Enabling programmers to implement generic algorithms.
- Stronger type checks at compile time (Fixing compile-time errors is easier than fixing runtime errors, which can be difficult to find.)
Generic method implementation.
1: using System;
2: using System.Collections.Generic;
3:
4: namespace GenericDisplayArray
5: {
6: class Program
7: {
8: static void Main(string[] args)
9: {
10: int[] intArray = { 1, 2, 3 };
11: double[] doubleArray = { 1.1, 2.2, 3.3 };
12: char[] charArray = { 'A', 'B', 'C' };
13:
14: Console.WriteLine("Display Integer array using Generic Method:");
15: DisplayArray<int>(intArray); // How to call generic method.
16:
17: Console.WriteLine("\nDisplay Double array using Generic Method: ");
18: DisplayArray(doubleArray); // How to call generic method.
19:
20: Console.WriteLine("\nDisplay Char array using Generic Method: ");
21: DisplayArray<char>(charArray); // How to call generic method.
22: Console.ReadKey();
23: }
24:
25: /// <summary>
26: /// Display any type of array.
27: /// </summary>
28: /// <typeparam name="T">Pass the datatype</typeparam>
29: /// <param name="inputArray">Pass the all type of array</param>
30: private static void DisplayArray<T>(T[] inputArray)
31: {
32: foreach (T element in inputArray)
33: {
34: Console.Write("{0} ", element);
35: }
36: }
37: }
38: }
Abstraction Vs Encapsulation
Abstraction | Encapsulation |
Hides the implementation details of the methods provides a base to variations in the application which can grow over period of time. | Hides the private data elements of the class and express only the required things to the client. |
In abstract classes some methods can have implementation. | All methods, properties in interfaces are empty. They are simple signature. |
Abstract classes are used when we want to share common functionality in parent child relationship. | Interfaces are used to define the contract, enforced standardization, decoupling and dynamic polymirphism. |
We can declare variables. | In interface we cannot declare variables. |
Abstract classes are inherited. | Interface are implemented. |
Class only inherits one abstract class. | Class may have several interfaces. |
Abstract class can contain access modifier. | Interface can not have access modifiers, everything is public. |
Fast. | Require more time to find actual method. |
Object Oriented Programming ( Opps )
1. Object Oriented Programming ( Opps )
"Object oriented programming is an approach that provides a way of modularizing programs by creating partitioned memory area for both data and function that can be used as templates for creating copies of such modules on demand."
2. What are feature of OPPS?
- Abstraction - Show only what is necessary
- Encapsulation - a process of hiding all the complex processing
- Inheritance - Helps to defined parent child relationship between classes.
- Polymorphism - Object to act differently under different condition.
3. What is class?
User define datatype, or Class is blue print.
4. What is object?
instance of class.
5. What is function?
Group of statement.