1. Register plugin

Before sending data to Tanuden TIMS API, your application will need to register itself before the Tanuden Console is initialized before the connection code is submitted.

Registration

For C# console applications, it is recommended that you run this method once your application is executed.

For Windows forms and applications with a UI, you may run this method when the application is executed or when a button is pressed.

var pluginMetadata = new Tanuden.Common.PluginMeta()
{
    Uid = "tanuden.tims.api.testconsoleapp",
    Name = "Test Console App",
    Version = "1.0.0",
    Author = "Haruyuki Tanukiji",
    Description = "This is a demo plugin that connects with Tanuden TIMS API"
};

TanudenTIMSAPI.Init(pluginMetadata);

You should change the properties in the PluginMeta class accordingly.

The Uid variable must all be lowercase and cannot contain any special characters other than underscore.

triangle-exclamation

Wait for API

There may be situations where the user may execute your application before starting the Tanuden Console. You may use the following method to pause the execution flow of your application and wait for the Tanuden Console to be started.

circle-exclamation

最終更新