[This is preliminary documentation and is subject to change.]
The CommonUtil type exposes the following members.
Methods
Name | Description | |
---|---|---|
GenerateHash(array<Byte>[]()[][]) |
Utility method that generates an MD5 hash from a byte array.
|
|
GenerateHash(String) |
Utility method that generates an MD5 Hash from a file.
|
|
MimeType |
Utility method that fetches the mimetype from the Windows registry based on a file extension.
If a mimetype cannot be found in the registry for the specified extension, a mimetype of "application/octetstream" will be returned. |
|
SetClientBase |
Method for getting the local IP and updating the ClientBaseAddress part of the CompositeDuplex of the CustomBinding.
This is used when working with asynchronous calls to the MultiArchive webservice, where the webservice needs to make callbacks to the caller. |
|
SetMessageVersion |
Method for setting the MessageVersion of the MessageEncoding element of the CustomBinding.
This is used when the MultiArchive webservices run on a Websphere Server or other situations where it is necessary to change the message encoding. |