C# Class Zetbox.Server.Wcf.WcfNamespaceReservation

Utility class to hold everything neccessary to modify the HTTP ACLs before starting the WCF server
Exibir arquivo Open project: daszat/zetbox

Public Methods

Method Description
ModifyReservation ( string urlPrefix, string accountName, bool removeReservation ) : void

Adds or removes an entry in the HTTP ACLs for a given prefix.

Private Methods

Method Description
CheckResult ( string fcn, int errorCode ) : void

Checks whether the errorCode is zero. If not, an ApplicationException is thrown.

CreateSddl ( string account ) : string

Creates a SDDL string representation of the ACL that Allows Generic eXecute for the specified user.

GetWin32ErrorMessage ( int errorCode ) : string

Retrieves the Win32 error message from an error code.

HRESULT_FROM_WIN32 ( int errorCode ) : int

Transforms an error code into a HRESULT

HttpDeleteServiceConfigurationAcl ( IntPtr mustBeZero, int configID, [ configInfo, int configInfoLength, IntPtr mustBeZero2 ) : int
HttpInitialize ( HTTPAPI_VERSION version, int flags, IntPtr mustBeZero ) : int
HttpSetServiceConfigurationAcl ( IntPtr mustBeZero, int configID, [ configInfo, int configInfoLength, IntPtr mustBeZero2 ) : int
HttpTerminate ( int flags, IntPtr mustBeZero ) : int

Method Details

ModifyReservation() public static method

Adds or removes an entry in the HTTP ACLs for a given prefix.
public static ModifyReservation ( string urlPrefix, string accountName, bool removeReservation ) : void
urlPrefix string the prefix whose ACL should be modified
accountName string the account name to be added or removed from the ACL
removeReservation bool whether access should be granted or denied
return void