EncryptedServiceClient
Assembly: ServiceStack.Client.dll
View Source
Declaration
public class EncryptedServiceClient : IEncryptedClient, IReplyClient, IServiceGateway, IHasSessionId, IHasBearerToken, IHasVersion
Properties
ServerPublicKeyXml
View Source
Declaration
public string ServerPublicKeyXml { get; }
SessionId
View Source
Declaration
public string SessionId { get; set; }
BearerToken
View Source
Declaration
public string BearerToken { get; set; }
Version
View Source
Declaration
public int Version { get; set; }
PublicKey
View Source
Declaration
public RSAParameters PublicKey { get; set; }
Client
View Source
Declaration
public IJsonServiceClient Client { get; set; }
KeyId
View Source
Declaration
public string KeyId { get; set; }
Methods
Send<TResponse>(Object)
View Source
Declaration
public TResponse Send<TResponse>(object request)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
System.Object | request |
Type Parameters
TResponse
Send<TResponse>(String, Object)
View Source
Declaration
public TResponse Send<TResponse>(string httpMethod, object request)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
System.String | httpMethod |
System.Object | request |
Type Parameters
TResponse
Send<TResponse>(String, IReturn<TResponse>)
View Source
Declaration
public TResponse Send<TResponse>(string httpMethod, IReturn<TResponse> request)
Returns
<TResponse>
Parameters
Type | Name |
---|---|
System.String | httpMethod |
ServiceStack.IReturn<T> | request |
Type Parameters
TResponse
SendAll<TResponse>(IEnumerable<Object>)
View Source
Declaration
public List<TResponse> SendAll<TResponse>(IEnumerable<object> requests)
Returns
System.Collections.Generic.List<<TResponse>>
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | requests |
Type Parameters
TResponse
Publish(Object)
View Source
Declaration
public void Publish(object request)
Parameters
Type | Name |
---|---|
System.Object | request |
PublishAll(IEnumerable<Object>)
View Source
Declaration
public void PublishAll(IEnumerable<object> requests)
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | requests |
CreateEncryptedMessage(Object, String, Byte[], Byte[], Byte[], String)
View Source
Declaration
public EncryptedMessage CreateEncryptedMessage(object request, string operationName, byte[] cryptKey, byte[] authKey, byte[] iv, string verb = null)
Returns
Parameters
Type | Name |
---|---|
System.Object | request |
System.String | operationName |
System.Byte[] | cryptKey |
System.Byte[] | authKey |
System.Byte[] | iv |
System.String | verb |
DecryptedException(WebServiceException, Byte[], Byte[])
View Source
Declaration
public WebServiceException DecryptedException(WebServiceException ex, byte[] cryptKey, byte[] authKey)
Returns
ServiceStack.WebServiceException
Parameters
Type | Name |
---|---|
ServiceStack.WebServiceException | ex |
System.Byte[] | cryptKey |
System.Byte[] | authKey |