C# Класс WakaTime.WakaTime

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ApiKey string
Debug bool

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

Метод Описание
Exec ( string commandName, vsCommandExecOption executeOption, object &varIn, object &varOut, bool &handled ) : void

Implements the Exec method of the IDTCommandTarget interface. This is called when the command is invoked.

OnAddInsUpdate ( Array &custom ) : void

Implements the OnAddInsUpdate method of the IDTExtensibility2 interface. Receives notification when the collection of Add-ins has changed.

OnBeginShutdown ( Array &custom ) : void

Implements the OnBeginShutdown method of the IDTExtensibility2 interface. Receives notification that the host application is being unloaded.

OnConnection ( object application, ext_ConnectMode connectMode, object addInInst, Array &custom ) : void

Implements the OnConnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being loaded.

OnDisconnection ( ext_DisconnectMode disconnectMode, Array &custom ) : void

Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.

OnStartupComplete ( Array &custom ) : void

Implements the OnStartupComplete method of the IDTExtensibility2 interface. Receives notification that the host application has completed loading.

QueryStatus ( string commandName, vsCommandStatusTextWanted neededText, vsCommandStatus &status, object &commandText ) : void

Implements the QueryStatus method of the IDTCommandTarget interface. This is called when the command's availability is updated

SendHeartbeat ( string fileName, bool isWrite ) : void
WakaTime ( ) : System

Implements the constructor for the Add-in object. Place your initialization code within this method.

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

Метод Описание
DocEventsOnDocumentOpened ( System.Windows.Forms.Document document ) : void
DocEventsOnDocumentSaved ( System.Windows.Forms.Document document ) : void
DoesCliExist ( ) : bool
EnoughTimePassed ( ) : bool
GetSettings ( ) : void
HandleActivity ( string currentFile, bool isWrite ) : void
IsCliLatestVersion ( ) : bool
PromptApiKey ( ) : void
WindowsEventsOnWindowActivated ( Window gotFocus, Window lostFocus ) : void

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

Exec() публичный Метод

Implements the Exec method of the IDTCommandTarget interface. This is called when the command is invoked.
public Exec ( string commandName, vsCommandExecOption executeOption, object &varIn, object &varOut, bool &handled ) : void
commandName string
executeOption vsCommandExecOption
varIn object
varOut object
handled bool
Результат void

OnAddInsUpdate() публичный Метод

Implements the OnAddInsUpdate method of the IDTExtensibility2 interface. Receives notification when the collection of Add-ins has changed.
public OnAddInsUpdate ( Array &custom ) : void
custom System.Array
Результат void

OnBeginShutdown() публичный Метод

Implements the OnBeginShutdown method of the IDTExtensibility2 interface. Receives notification that the host application is being unloaded.
public OnBeginShutdown ( Array &custom ) : void
custom System.Array
Результат void

OnConnection() публичный Метод

Implements the OnConnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being loaded.
public OnConnection ( object application, ext_ConnectMode connectMode, object addInInst, Array &custom ) : void
application object
connectMode ext_ConnectMode
addInInst object
custom System.Array
Результат void

OnDisconnection() публичный Метод

Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.
public OnDisconnection ( ext_DisconnectMode disconnectMode, Array &custom ) : void
disconnectMode ext_DisconnectMode
custom System.Array
Результат void

OnStartupComplete() публичный Метод

Implements the OnStartupComplete method of the IDTExtensibility2 interface. Receives notification that the host application has completed loading.
public OnStartupComplete ( Array &custom ) : void
custom System.Array
Результат void

QueryStatus() публичный Метод

Implements the QueryStatus method of the IDTCommandTarget interface. This is called when the command's availability is updated
public QueryStatus ( string commandName, vsCommandStatusTextWanted neededText, vsCommandStatus &status, object &commandText ) : void
commandName string
neededText vsCommandStatusTextWanted
status vsCommandStatus
commandText object
Результат void

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

public static SendHeartbeat ( string fileName, bool isWrite ) : void
fileName string
isWrite bool
Результат void

WakaTime() публичный Метод

Implements the constructor for the Add-in object. Place your initialization code within this method.
public WakaTime ( ) : System
Результат System

Описание свойств

ApiKey публичное статическое свойство

public static string ApiKey
Результат string

Debug публичное статическое свойство

public static bool Debug
Результат bool