Skip to main content

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
TypeName
System.Objectrequest
Type Parameters
  • TResponse

Send<TResponse>(String, Object)

View Source
Declaration
public TResponse Send<TResponse>(string httpMethod, object request)
Returns

<TResponse>

Parameters
TypeName
System.StringhttpMethod
System.Objectrequest
Type Parameters
  • TResponse

Send<TResponse>(String, IReturn<TResponse>)

View Source
Declaration
public TResponse Send<TResponse>(string httpMethod, IReturn<TResponse> request)
Returns

<TResponse>

Parameters
TypeName
System.StringhttpMethod
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
TypeName
System.Collections.Generic.IEnumerable<System.Object>requests
Type Parameters
  • TResponse

Publish(Object)

View Source
Declaration
public void Publish(object request)
Parameters
TypeName
System.Objectrequest

PublishAll(IEnumerable<Object>)

View Source
Declaration
public void PublishAll(IEnumerable<object> requests)
Parameters
TypeName
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

ServiceStack.EncryptedMessage

Parameters
TypeName
System.Objectrequest
System.StringoperationName
System.Byte[]cryptKey
System.Byte[]authKey
System.Byte[]iv
System.Stringverb

DecryptedException(WebServiceException, Byte[], Byte[])

View Source
Declaration
public WebServiceException DecryptedException(WebServiceException ex, byte[] cryptKey, byte[] authKey)
Returns

ServiceStack.WebServiceException

Parameters
TypeName
ServiceStack.WebServiceExceptionex
System.Byte[]cryptKey
System.Byte[]authKey

Implements