Example #1
0
        public bool Initialize(object iAzure, IEventFeedback iFeedback)
        {
            azure    = iAzure as IAzure;
            feedback = iFeedback;

            return(true);
        }
Example #2
0
 public BlobQueue(string queueName, string connectionString, IEventFeedback feedback, IEventReceiver receiver)
 {
     _queueName        = queueName;
     _connectionString = connectionString;
     _feedback         = feedback;
     _receiver         = receiver;
 }
Example #3
0
        public static void Initialize(string connectionString, string queueName, IEventFeedback feedback)
        {
            _feedback = feedback;
            _client   = QueueClient.CreateFromConnectionString(connectionString);

            Task.Run(async() =>
            {
                await SendQueueMessagesAsync(_ctsSend.Token);
            });
        }
Example #4
0
        public static bool Initialize(string connectionString, IEventFeedback feedback)
        {
            _connectionString = connectionString;
            _feedback         = feedback;

            try
            {
                storageAccount = CloudStorageAccount.Parse(_connectionString);
                blobClient     = storageAccount.CreateCloudBlobClient();
            }
            catch (Exception ex)
            {
                if (feedback != null)
                {
                    feedback.OnException(null, ex);
                }

                return(false);
            }

            return(true);
        }
Example #5
0
        public static bool Initialize(string shareName, string connectionString, IEventFeedback feedback)
        {
            _connectionString = connectionString;
            _shareName        = shareName;
            _feedback         = feedback;

            try
            {
                storageAccount = CloudStorageAccount.Parse(_connectionString);
                fileClient     = storageAccount.CreateCloudFileClient();
                fileShare      = GetFileShare();
            }
            catch (Exception ex)
            {
                if (_feedback != null)
                {
                    _feedback.OnException(fileClient, ex);
                }

                return(false);
            }

            return(true);
        }
Example #6
0
 public Receiver(string connectionString, string queueName, IEventFeedback feedback)
 {
     _connectionString = connectionString;
     _queueName        = queueName;
 }
Example #7
0
 public Receiver(string connectionString, IEventFeedback feedback)
 {
     _connectionString = connectionString;
     _feedback         = feedback;
 }