CacheDirectEmulator for InterSystems IRIS Data Platform

Downloads71
Subscribe
0
Bookmark
0
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.
Details
Releases
Reviews
Issues

What's new in this version

Initial Release

.Net class mimics Cache Direct(VisM.OCX) interface for IRIS

Implemented the VisM.OCX interface for .Net Applications using IRIS .Net Native API .

How to use

IRIS Server

The version I tested this tool is IRIS for Windows (x86-64) 2022.2 (Build 368U) Fri Oct 21 2022 16:43:20 EDT

IRIS Server side class definition

Importing CacheDirect.Emulator.cls into the appropriate namespace. (The sample console application assumes that the namespace is USER)

Create C# Project file in Visual Studio

Create a Console C# application project in Visual Studio 2019.

The version I used is as follows.

Microsoft Visual Studio Community 2019 Version 16.11.15

Add the following files to the project

  • cacheDirectWapper.cs
  • ConsoleApp.cs

Delete Program.cs

When building with Visual Studio 2022, add the following files

  • net60/ConsoleApp/cacheDirectWapper.cs
  • net60/ConsoleApp/ConsoleApp.cs

reference setting

Choose Add Reference from the project settings in Visual Studio and add the following files.

<InstallDir>\InterSystems\IRIS\dev\dotnet\bin\v4.6.2

InterSystems.Data.IRISClient.dll

For Visual Studio 2022

<InstallDir>\InterSystems\IRIS\dev\dotnet\bin\net6.0

InterSystems.Data.IRISClient.dll

Build

Click Build from the Visual Studio build menu.

Make sure there are no errors in the output window.

If you get an error, there's something wrong with the reference settings being not working properly.

run

  1. From the Visual Studio debug menu, click Start Debugging.
  2. you need to press any key to finish the sample application
  3. you can see the program output in the Visual Studio output window

for VB.Net

Module1.vb is a samle VB.Net code to use the emulator.

to run the sample

  1. create a c# class library project
  2. add cacheDirectWapper.cs to the project
  3. add references to InterSystems.Data.IRISClient.dll
  4. build the project
  5. create a VB.Net console application project
  6. add Module1.vb to the project
  7. add references to InterSystems.Data.IRISClient.dll
  8. add refernce to the class library dll

Unsupported features

Unsupported Property

  • ConnectionState
  • ConTag
  • ElapsedTime
  • ErrorTrap
  • KeepAliveInterval
  • KeepAliveTimeOut
  • LogMask
  • MServer
  • MsgText
  • PromptInterval
  • Server
  • Tag
  • TimeOut

Unsupported Method

  • DeleteConnection
  • SetMServer
  • SetServer
  • Shutdown Event

Unsupported Additinal features

  • ErrorTrapping
  • The Keep Alive Feature
  • Server Read Loop and Quick Check
  • Read and Write Hooks
  • Other Server Side Hooks
  • User Cancel Option

Visual Basic Specific functions

It does not support any features specific to Visual Basic in the Cache Direct features as follows:.

  • Callback function
  • MessageBox
  • DoEvents, etc.

Constructors

2 Constructors are defined

cacheDirectWapper(string constr)

cacheDirectWapper(IRISConnection irisconn)

Using Multiple Namespaces

If you need to switch namespaces within your application, you must import CacheDirect.Emulator class into each namespace or do package mapping.

Rating
0 (0)
Category
Technology Example
Works with
InterSystems IRIS
Tags
Info
Version
1.0.0
Last updated
2020-06-01
Repository
Open
Documentation
Open
License
Link