CommonUtil Members

MultiArchive SDK .NET

Collapse image Expand Image Copy image CopyHover image

[This is preliminary documentation and is subject to change.]

The CommonUtil type exposes the following members.

Methods

  Name Description
Public method Static member GenerateHash(array<Byte>[]()[][])
Utility method that generates an MD5 hash from a byte array.
Public method Static member GenerateHash(String)
Utility method that generates an MD5 Hash from a file.
Public method Static member 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.
Public method Static member 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.
Public method Static member 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.

See Also