C# Класс ProjectFirma.Web.Controllers.WebServiceToken

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
WebServiceTokenForParameterizedReplacements WebServiceToken
WebServiceTokenForUnitTests WebServiceToken
WebServiceTokenGuidForParameterizedReplacement Guid
WebServiceTokenGuidForUnitTests Guid

Открытые методы

Метод Описание
DemandHasPermission ( FirmaBaseFeature feature ) : void

Throws an exception if the Person associated with this WebServiceToken does not have access to FirmaBaseFeature In a unit test using WebServiceTokenGuidForUnitTests this will always pass, and Person will return Stewart Gordon's person ID for now Might want to introduce a system person at some point.

ToString ( ) : string
WebServiceToken ( string allegedWebServiceToken ) : System

Приватные методы

Метод Описание
DemandValidWebServiceToken ( string allegedWebServiceToken, bool isBeingCalledByStaticConstructor ) : Guid

Throws an exception if the string is not valid as a WebServiceToken

IsValidAsParameterizedReplacementToken ( Guid tokenGuidToCheck ) : bool

Indicates if the token is valid in these circumstances as a parameter replacement token, has to be the same GUID as WebServiceTokenGuidForParameterizedReplacement

IsValidAsUnitTestToken ( Guid tokenGuidToCheck, bool isBeingCalledByStaticConstructor ) : bool

Indicates if the token is valid in these circumstances as a unit test token, has to be the same GUID as WebServiceTokenGuidForUnitTests

WebServiceToken ( ) : System
WebServiceToken ( string allegedWebServiceToken, bool isBeingCalledByStaticConstructor ) : System

Описание методов

DemandHasPermission() публичный Метод

Throws an exception if the Person associated with this WebServiceToken does not have access to FirmaBaseFeature In a unit test using WebServiceTokenGuidForUnitTests this will always pass, and Person will return Stewart Gordon's person ID for now Might want to introduce a system person at some point.
public DemandHasPermission ( FirmaBaseFeature feature ) : void
feature FirmaBaseFeature
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

WebServiceToken() публичный Метод

public WebServiceToken ( string allegedWebServiceToken ) : System
allegedWebServiceToken string
Результат System

Описание свойств

WebServiceTokenForParameterizedReplacements публичное статическое свойство

public static WebServiceToken,ProjectFirma.Web.Controllers WebServiceTokenForParameterizedReplacements
Результат WebServiceToken

WebServiceTokenForUnitTests публичное статическое свойство

The Unit Test GUID as a web service token
public static WebServiceToken,ProjectFirma.Web.Controllers WebServiceTokenForUnitTests
Результат WebServiceToken

WebServiceTokenGuidForParameterizedReplacement публичное статическое свойство

public static Guid WebServiceTokenGuidForParameterizedReplacement
Результат Guid

WebServiceTokenGuidForUnitTests публичное статическое свойство

The Unit Test GUID which can be used to make the web service token
public static Guid WebServiceTokenGuidForUnitTests
Результат Guid