39 lines
925 B
C#
39 lines
925 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace SignalRClient.Contracts
|
|
{
|
|
public interface IExchangeHub : IDisposable
|
|
{
|
|
void SendExchangeQ(double value);
|
|
|
|
void SendExchangeV(double value);
|
|
}
|
|
|
|
[Guid("4F018C57-9E7B-4391-8837-BCA6373E0AFE")]
|
|
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
|
public interface IExchangeClient : IExchangeHub
|
|
{
|
|
bool Connected { get; }
|
|
|
|
bool Connect(string url);
|
|
|
|
new void Dispose();
|
|
|
|
new void SendExchangeQ(double value);
|
|
|
|
new void SendExchangeV(double value);
|
|
}
|
|
|
|
[Guid("D140D0EA-220E-478E-91B6-5FE8D45B52D0")]
|
|
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
|
public interface IExchangeEvents
|
|
{
|
|
void ExchangeQ(double value);
|
|
|
|
void ExchangeV(double value);
|
|
}
|
|
|
|
public delegate void DoubleEventHandler(double value);
|
|
}
|