/// <summary> /// Initializes a new instance of the <see cref="CreateMessageQueueTask"/> class /// using a specified message queue path and an indicator of whether the queue /// should be transactional or not. /// </summary> /// <param name="messageQueuePath">The message queue path.</param> /// <param name="isTransactional">if set to <c>true</c> the queue will be transactional; otherwise <c>false</c>.</param> /// <param name="mode">The task mode.</param> public CreateMessageQueueTask( string messageQueuePath, bool isTransactional, CreateMessageQueueMode mode) { this.messageQueuePath = messageQueuePath; this.isTransactional = isTransactional; this.mode = mode; }
public TRunner CreateMessageQueue( string messageQueuePath, bool isTransactional, CreateMessageQueueMode mode) { CreateMessageQueueTask task = new CreateMessageQueueTask(messageQueuePath, isTransactional, mode); return(RunTask(task)); }
public TRunner CreateMessageQueue( string messageQueuePath, bool isTransactional, CreateMessageQueueMode mode, string userName, MessageQueueAccessRights accessRights) { CreateMessageQueueTask task = new CreateMessageQueueTask(messageQueuePath, isTransactional, mode) { UserName = userName, AccessRights = accessRights }; return(RunTask(task)); }
public static void Execute( ITaskContext context, string messageQueuePath, bool isTransactional, CreateMessageQueueMode mode, string userName, MessageQueueAccessRights accessRights) { CreateMessageQueueTask task = new CreateMessageQueueTask(messageQueuePath, isTransactional, mode) { UserName = userName, AccessRights = accessRights }; task.Execute(context); }