C# Class Rest4Net.IronMq.IronMqProvider

Inheritance: RestApiProvider
Show file Open project: acropolium/Rest4Net Class Usage Examples

Public Methods

Method Description
AddMessage ( string queueName, Message message ) : IEnumerable
AddMessages ( string queueName, Message messages ) : IEnumerable
GetMessage ( string queueName ) : IMessage
GetMessages ( string queueName, int countToTake = 1 ) : IEnumerable
IronMqProvider ( string token, string projectId, Provider provider = Provider.AWS ) : System
Queue ( string name ) : IQueue
QueueClear ( string name ) : bool
Queues ( uint page ) : IEnumerable
RemoveMessage ( string queueName, string id ) : bool

Protected Methods

Method Description
BuildWithPath ( string path, RequestType type = RequestType.Get ) : Command
Cmd ( string path, RequestType requestType = RequestType.Get ) : Command

Private Methods

Method Description
GetProviderHost ( Provider provider ) : string
JsonPreparer ( JToken input ) : JToken
MessagesToJson ( IEnumerable messages ) : string
RunInfo ( string path, RequestType type = RequestType.Post ) : string

Method Details

AddMessage() public method

public AddMessage ( string queueName, Message message ) : IEnumerable
queueName string
message Message
return IEnumerable

AddMessages() public method

public AddMessages ( string queueName, Message messages ) : IEnumerable
queueName string
messages Message
return IEnumerable

BuildWithPath() protected method

protected BuildWithPath ( string path, RequestType type = RequestType.Get ) : Command
path string
type RequestType
return Command

Cmd() protected method

protected Cmd ( string path, RequestType requestType = RequestType.Get ) : Command
path string
requestType RequestType
return Command

GetMessage() public method

public GetMessage ( string queueName ) : IMessage
queueName string
return IMessage

GetMessages() public method

public GetMessages ( string queueName, int countToTake = 1 ) : IEnumerable
queueName string
countToTake int
return IEnumerable

IronMqProvider() public method

public IronMqProvider ( string token, string projectId, Provider provider = Provider.AWS ) : System
token string
projectId string
provider Provider
return System

Queue() public method

public Queue ( string name ) : IQueue
name string
return IQueue

QueueClear() public method

public QueueClear ( string name ) : bool
name string
return bool

Queues() public method

public Queues ( uint page ) : IEnumerable
page uint
return IEnumerable

RemoveMessage() public method

public RemoveMessage ( string queueName, string id ) : bool
queueName string
id string
return bool