C# Класс DataServer.DataServerBase

Наследование: Caliburn.Micro.PropertyChangedBase, IDataServer
Показать файл Открыть проект

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

Свойство Тип Описание
client csImb

Private Properties

Свойство Тип Описание
CreateShadowServiceForSharedService PoiService
Imb_OnVariable void
InitImb void
JoinSharedService void
ListReset void
ProcessReceivedImbBusVariable void
ReceivedPrivateMessage void
ReceivedServiceNotificationOnImbBus void
SendData void
SendPrivateMessage void
SendServiceReset void
SendToImbBusSubscriptedToService void
ServicesCollectionChanged void

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

Метод Описание
AddLocalDataService ( string folder, Mode _mode, string file, string originFolder = "", bool autoStart = false ) : PoiService
AddLocalDataServices ( string folder, Mode myMode, string originFolder = "", bool autoStart = false ) : void
AddService ( Service s, Mode serviceMode ) : void

Add and init a service

DataServerBase ( ) : System
DeleteService ( PoiService s ) : void

delete a service

RemoveService ( Service s ) : void

Remove a service

SendEvent ( string title, string content ) : void
SendFile ( string imageId, byte image, Service service ) : void
SendPrivateMessage ( int pToImbHandle, PrivateMessage pm ) : void
SendPrivateMessage ( int server, PrivateMessageActions action, System.Guid serviceId ) : void
SendPrivateMessage ( int server, PrivateMessageActions action, System.Guid serviceId, string contentId, System.Guid ownerId ) : void
Start ( Mode startMode ) : void

Start server

Start ( string folder, Mode myMode, string originFolder, bool autoStart = false, bool addLocalServices = true ) : void
Stop ( ) : void

Stop server

Subscribe ( Service s ) : void
Subscribe ( Service s, Mode pMode ) : void

Subscribe to a service. a local file will be openened from file, otherwise a subscription request will be send

TriggerTapped ( TappedEventArgs tappedEventArgs ) : void
UnSubscribe ( Service s ) : void

unsubscribe from a service

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

Метод Описание
CreateShadowServiceForSharedService ( string pSharedServiceName, System.Guid pSharedServiceGuid, int pImbHandleSharingService ) : PoiService

Imb_OnVariable ( TConnection aConnection, string aVarName, byte aVarValue, byte aPrevValue ) : void
InitImb ( ) : void

Initialize imb connection

JoinSharedService ( bool pServiceAlreadyExsisted, PoiService pSharedService ) : void
ListReset ( System.Guid serviceId, byte buffer, string channel ) : void

Received a complete content list from the server

ProcessReceivedImbBusVariable ( string pImbVariableName, string pImbVariableContent ) : void
ReceivedPrivateMessage ( TEventEntry aEvent, int aTick, int aBufferId, TByteBuffer aBuffer ) : void

received message on private channel

ReceivedServiceNotificationOnImbBus ( string pImbVariableName, string pImbVariableContent ) : void

IMB bus variable updated

SendData ( int receiver, Service service, string contentId, System.Guid ownerId, string channel ) : void

Send file (icon, image, audio) to a specific client

SendPrivateMessage ( int server, PrivateMessageActions action, System.Guid serviceId, string contentId, byte data, System.Guid ownerId, string channelName ) : void
SendServiceReset ( int sender, System.Guid serviceId, int priority ) : void

Send all content lists from a service to a client

SendToImbBusSubscriptedToService ( System.Guid pServiceId, int pImbClientHandle ) : void
ServicesCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

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

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

public AddLocalDataService ( string folder, Mode _mode, string file, string originFolder = "", bool autoStart = false ) : PoiService
folder string
_mode Mode
file string
originFolder string
autoStart bool
Результат PoiService

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

public AddLocalDataServices ( string folder, Mode myMode, string originFolder = "", bool autoStart = false ) : void
folder string
myMode Mode
originFolder string
autoStart bool
Результат void

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

Add and init a service
public AddService ( Service s, Mode serviceMode ) : void
s Service
serviceMode Mode
Результат void

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

public DataServerBase ( ) : System
Результат System

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

delete a service
public DeleteService ( PoiService s ) : void
s PoiService
Результат void

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

Remove a service
public RemoveService ( Service s ) : void
s Service
Результат void

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

public SendEvent ( string title, string content ) : void
title string
content string
Результат void

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

public SendFile ( string imageId, byte image, Service service ) : void
imageId string
image byte
service Service
Результат void

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

public SendPrivateMessage ( int pToImbHandle, PrivateMessage pm ) : void
pToImbHandle int
pm PrivateMessage
Результат void

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

public SendPrivateMessage ( int server, PrivateMessageActions action, System.Guid serviceId ) : void
server int
action PrivateMessageActions
serviceId System.Guid
Результат void

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

public SendPrivateMessage ( int server, PrivateMessageActions action, System.Guid serviceId, string contentId, System.Guid ownerId ) : void
server int
action PrivateMessageActions
serviceId System.Guid
contentId string
ownerId System.Guid
Результат void

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

Start server
public Start ( Mode startMode ) : void
startMode Mode
Результат void

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

public Start ( string folder, Mode myMode, string originFolder, bool autoStart = false, bool addLocalServices = true ) : void
folder string
myMode Mode
originFolder string
autoStart bool
addLocalServices bool
Результат void

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

Stop server
public Stop ( ) : void
Результат void

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

public Subscribe ( Service s ) : void
s Service
Результат void

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

Subscribe to a service. a local file will be openened from file, otherwise a subscription request will be send
public Subscribe ( Service s, Mode pMode ) : void
s Service
pMode Mode
Результат void

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

public TriggerTapped ( TappedEventArgs tappedEventArgs ) : void
tappedEventArgs TappedEventArgs
Результат void

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

unsubscribe from a service
public UnSubscribe ( Service s ) : void
s Service
Результат void

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

client публичное свойство

public csImb client
Результат csImb