|
/// -----------------------------------------------------------------------------------------------------------
/// Module : ABAS400AdapterConnectionFactory.cs
/// Description : Defines the connection factory for the target system.
/// -----------------------------------------------------------------------------------------------------------
#region Using Directives
using System;
using System.Collections.Generic;
using System.Text;
using System.IdentityModel.Selectors;
using System.ServiceModel.Description;
using Microsoft.ServiceModel.Channels.Common;
#endregion
namespace LOBAdapters.TCP
{
public class AdapterConnectionFactory : IConnectionFactory
{
#region Private Fields
// Stores the client credentials
private ClientCredentials clientCredentials;
// Stores the adapter class
private AdapterCore adapter;
private AdapterConnectionUri connection;
#endregion Private Fields
/// <summary>
/// Initializes a new instance of the ABAS400AdapterConnectionFactory class
/// </summary>
public AdapterConnectionFactory(ConnectionUri connectionUri
, ClientCredentials clientCredentials
, AdapterCore adapter)
{
this.clientCredentials = clientCredentials;
this.adapter = adapter;
this.connection = connectionUri as AdapterConnectionUri;
}
#region Public Properties
/// <summary>
/// Gets the adapter
/// </summary>
public AdapterCore Adapter
{
get
{
return this.adapter;
}
}
public AdapterConnectionUri Connection
{
get
{
return this.connection;
}
}
#endregion Public Properties
#region Public Methods
/// <summary>
/// Creates the connection to the target system
/// </summary>
public IConnection CreateConnection()
{
return new AdapterConnection(this);
}
#endregion Public Methods
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Self-motivated, creative and results-driven technology executive who is well versed and experienced in leveraging an end-to-end, holistic vision of business objectives to drive full technology / business alignment.
Skilled in grasping business needs and sudden market demand’s shifts by diving into latest business / technology trends, selecting the best fit business model / technology to create a positive reflection on revenue. His multifaceted approach has enabled him to deliver key solutions across a wide range of disciplines including design, development, UX / UI, Business Intelligence.
Technical Specialties are in .Net, Java, Spring Boot, Maven, MS SQL, Oracle, Postgesql, Redis, Javascript, Bootstrap, Angular 2.