C# Класс Zombie.ConnectionMgr

The ConnectionMgr class is used to configure the application identity and as a source of SDK connections, which require the application identity
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetConnection ( ) : SDKConnection

Creates an SDK connection using the current default connection configuration

GetConnection ( ConnectionConfig config ) : SDKConnection

Creates and SDK connection using the specified connection configuration

GetTestConnection ( Interop.QBFC12 sessionMgr ) : SDKConnection
InitDesktop ( string applicationName ) : void

A simple method to initialize an application that will connect to the current QuickBooks desktop edition file.

SetApplicationIdentity ( ApplicationIdentity id ) : void
ShutDown ( ) : void

Closes all connections and ends the session. If you wrap all of your connections with the using statement, you won't need this. But if you're getting creative with connection management, this method should clean things up if it is called during application shutdown.

Приватные методы

Метод Описание
ConnectionClosed ( SDKConnection cn ) : void

Описание методов

GetConnection() публичный статический Метод

Creates an SDK connection using the current default connection configuration
public static GetConnection ( ) : SDKConnection
Результат SDKConnection

GetConnection() публичный статический Метод

Creates and SDK connection using the specified connection configuration
public static GetConnection ( ConnectionConfig config ) : SDKConnection
config ConnectionConfig The connection configuration to use
Результат SDKConnection

GetTestConnection() публичный статический Метод

public static GetTestConnection ( Interop.QBFC12 sessionMgr ) : SDKConnection
sessionMgr Interop.QBFC12
Результат SDKConnection

InitDesktop() публичный статический Метод

A simple method to initialize an application that will connect to the current QuickBooks desktop edition file.
public static InitDesktop ( string applicationName ) : void
applicationName string The name that identifies the application to QuickBooks
Результат void

SetApplicationIdentity() публичный статический Метод

public static SetApplicationIdentity ( ApplicationIdentity id ) : void
id System.ApplicationIdentity
Результат void

ShutDown() публичный статический Метод

Closes all connections and ends the session. If you wrap all of your connections with the using statement, you won't need this. But if you're getting creative with connection management, this method should clean things up if it is called during application shutdown.
public static ShutDown ( ) : void
Результат void