Источник:
http://olondono.blogspot.com/2009/01...-freeware.html
==============
Based in
MeetGate, I've developed this simple messaging system for use in DAX. This is not a fully Instant Messaging system yet, but provides a simple and efficient chat for improve co-workers communication, and the best part, is freeware.
The server includes only a small subset of
MeetGate's features and was developed using .NET Framework 3.5 (WCF). I hope someday I could improve it with others important services like the
"File Publication" for automatic distribution of files using the
Presence Indicator.
You can use it for free under terms of
The Microsoft Public License (Ms-PL).
Installation
Copy the server's files anywhere and install the windows service by running the command line:
MGServerSvc /install. For uninstall it, simply run in the command line:
MGServerSvc /uninstall.
The server's address can be configured by creating or editing the
MGServerSvc.exe.config file as:
You need to copy the following files to the DAX client's directory, usually located in
C:\Program Files\Microsoft Dynamics AX\40\Client\Bin:
MGControlAX.dll
MGLibrary.dll
MGClientLibrary.dll
For the Dynamics AX client, you need to install the ActiveX
MGControlAX.dll. Dynamics AX cannot process events from managed components so the only way to notify events in DAX is by building an ActiveX control. In my case, I developed the
MGControlAX.dll and before use it, you must register it as:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm MGControlAX.dll /tlb /codebase
NOTE: Remember the parameters:
/tlb /codebase.
After that, you can import the .XPO project and edit the
login method in the form
MGToolbar. This form runs as a DAX toolbar so you can always access its buttons:
login/logout,
contacts and
close.
void Login(){ UserId currentUserId = curuserid(); UserInfo userInfo; ; select firstonly userInfo where userInfo.id == currentUserId; if (userInfo.name != "") MGControlX.UserName(userInfo.name); else MGControlX.UserName(userInfo.Id); MGControlX.Domain(userInfo.networkDomain); MGControlX.BaseAddress("net.tcp://localhost:8000/MGServerService/MGServerService"); MGControlX.Login();}
If you press the button contacts and it will show you the list of available contacts
(This version is NOT users limited). If you make double click over an online contact you can start chatting with him. All changes in any contact's status is notified (Online/Offline) and you can see the icon as green or red respectively.
Files for download:
Server's files
The XPO file
Client's files
Источник:
http://olondono.blogspot.com/2009/01...-freeware.html