Получение списка связанных клиентов для wcf сервиса

@Dale Ragan: Это будет работать на формат Office 2003 XML, но это не портативно (как, скажем, .doc, или .docx файлы были бы).

К чтению-записи те, необходимо будет использовать Word Object Library ActiveX control:

http://www.codeproject.com/KB/aspnet/wordapplication.aspx

5
задан Sindhudweep 4 November 2009 в 23:37
поделиться

2 ответа

Я не думаю, что для этого есть что-то встроенное, но было бы довольно легко создать отслеживающий IServiceBehavior + IDispatchMessageInspector, который бы проверял RemoteClientEnpointMessageProperty до того, как вызов будет отправлен в службу. impl и вставьте IP-адрес клиента в общий список и удалите его по завершении вызова / сеанса.

1
ответ дан 15 December 2019 в 06:29
поделиться

By default, WCF promotes the use of "per-call" services, e.g. your client calls, the request gets handled, and then the client is disconnected again right away.

WCF doesn't lend itself too well for and isn't intended for long-running connections - so you can't really "enumerate the currently connected users" since there aren't any (or only for a fraction of a second).

WCF is not like a Windows domain server where you log in and stay logged in for an extended period of time.

2
ответ дан 15 December 2019 в 06:29
поделиться
Другие вопросы по тегам:

Похожие вопросы: