Ejemplo n.º 1
0
        public static System.Collections.IEnumerable ListTables_Embedded(
            SqlString logicalConnectionName,
            SqlString xmsclientrequestId)
        {
            Configuration.EmbeddedConfiguration config = Configuration.EmbeddedConfiguration.GetConfigurationFromEmbeddedFile(logicalConnectionName.Value);

            return(ListTables(config.AccountName, config.SharedKey, config.UseHTTPS,
                              xmsclientrequestId));
        }
Ejemplo n.º 2
0
        public static void CreateTable_Embedded(
            SqlString logicalConnectionName,
            SqlString tableName,
            SqlString xmsclientrequestId)
        {
            Configuration.EmbeddedConfiguration config = Configuration.EmbeddedConfiguration.GetConfigurationFromEmbeddedFile(logicalConnectionName.Value);

            CreateTable(config.AccountName, config.SharedKey, config.UseHTTPS,
                        tableName, xmsclientrequestId);
        }
Ejemplo n.º 3
0
        public static void RetrieveApproximateMessageCount_Embedded(
            SqlString logicalConnectionName,
            SqlString queueName,
            SqlInt32 timeoutSeconds,
            SqlString xmsclientrequestId)
        {
            Configuration.EmbeddedConfiguration config = Configuration.EmbeddedConfiguration.GetConfigurationFromEmbeddedFile(logicalConnectionName.Value);

            RetrieveApproximateMessageCount(config.AccountName, config.SharedKey, config.UseHTTPS,
                                            queueName, timeoutSeconds, xmsclientrequestId);
        }
Ejemplo n.º 4
0
        public static void CreateQueue_Embedded(
            SqlString logicalConnectionName,
            SqlString queueName,
            SqlInt32 timeoutSeconds,
            SqlGuid xmsclientrequestId)
        {
            Configuration.EmbeddedConfiguration config = Configuration.EmbeddedConfiguration.GetConfigurationFromEmbeddedFile(logicalConnectionName.Value);

            CreateQueue(config.AccountName, config.SharedKey, config.UseHTTPS,
                        queueName, timeoutSeconds, xmsclientrequestId);
        }
Ejemplo n.º 5
0
        public static void DequeueMessage_Embedded(
            SqlString logicalConnectionName,
            SqlString queueName,
            SqlInt32 visibilityTimeoutSeconds, // we won't support peek so we should do it fast
            SqlInt32 timeoutSeconds,
            SqlGuid xmsclientrequestId)
        {
            Configuration.EmbeddedConfiguration config = Configuration.EmbeddedConfiguration.GetConfigurationFromEmbeddedFile(logicalConnectionName.Value);

            DequeueMessage(config.AccountName, config.SharedKey, config.UseHTTPS,
                           queueName, visibilityTimeoutSeconds, timeoutSeconds, xmsclientrequestId);
        }
Ejemplo n.º 6
0
        public static void ListQueuesProc_Embedded(
            SqlString logicalConnectionName,
            SqlString prefix,
            SqlBoolean IncludeMetadata,
            SqlInt32 timeoutSeconds,
            SqlGuid xmsclientrequestId)
        {
            Configuration.EmbeddedConfiguration config = Configuration.EmbeddedConfiguration.GetConfigurationFromEmbeddedFile(logicalConnectionName.Value);

            ListQueuesProc(config.AccountName, config.SharedKey, config.UseHTTPS,
                           prefix, IncludeMetadata, timeoutSeconds, xmsclientrequestId);
        }
Ejemplo n.º 7
0
        public static System.Collections.IEnumerable ListQueues_Faulty_Embedded(
            SqlString logicalConnectionName,
            SqlString prefix,
            SqlBoolean IncludeMetadata,
            SqlInt32 timeoutSeconds,
            SqlString xmsclientrequestId)
        {
            Configuration.EmbeddedConfiguration config = Configuration.EmbeddedConfiguration.GetConfigurationFromEmbeddedFile(logicalConnectionName.Value);

            return(ListQueues_Faulty(config.AccountName, config.SharedKey, config.UseHTTPS,
                                     prefix, IncludeMetadata, timeoutSeconds, xmsclientrequestId));
        }
Ejemplo n.º 8
0
        public static void DeleteEntity_Embedded(
            SqlString logicalConnectionName,
            SqlString tableName,
            SqlString partitionKey,
            SqlString rowKey,
            SqlString xmsclientrequestId)
        {
            Configuration.EmbeddedConfiguration config = Configuration.EmbeddedConfiguration.GetConfigurationFromEmbeddedFile(logicalConnectionName.Value);

            DeleteEntity(config.AccountName, config.SharedKey, config.UseHTTPS,
                         tableName, partitionKey, rowKey, xmsclientrequestId);
        }
Ejemplo n.º 9
0
        public static void BreakContainerLeaseImmediately_Embedded(
            SqlString logicalConnectionName,
            SqlString containerName,
            SqlInt32 timeoutSeconds,
            SqlGuid xmsclientrequestId)
        {
            Configuration.EmbeddedConfiguration config = Configuration.EmbeddedConfiguration.GetConfigurationFromEmbeddedFile(logicalConnectionName.Value);

            BreakContainerLeaseImmediately(
                config.AccountName, config.SharedKey, config.UseHTTPS,
                containerName,
                timeoutSeconds, xmsclientrequestId);
        }
Ejemplo n.º 10
0
        public static void AcquireContainerInfiniteLease_Embedded(
            SqlString logicalConnectionName,
            SqlString containerName,
            SqlGuid proposedLeaseId,
            SqlInt32 timeoutSeconds,
            SqlGuid xmsclientrequestId)
        {
            Configuration.EmbeddedConfiguration config = Configuration.EmbeddedConfiguration.GetConfigurationFromEmbeddedFile(logicalConnectionName.Value);

            AcquireContainerInfiniteLease(
                config.AccountName, config.SharedKey, config.UseHTTPS,
                containerName,
                proposedLeaseId, timeoutSeconds, xmsclientrequestId);
        }
Ejemplo n.º 11
0
        public static void BreakBlobLeaseWithGracePeriod_Embedded(
            SqlString logicalConnectionName,
            SqlString containerName,
            SqlString blobName,
            SqlInt32 leaseBreakPeriod,
            SqlInt32 timeoutSeconds,
            SqlGuid xmsclientrequestId)
        {
            Configuration.EmbeddedConfiguration config = Configuration.EmbeddedConfiguration.GetConfigurationFromEmbeddedFile(logicalConnectionName.Value);

            BreakBlobLeaseWithGracePeriod(
                config.AccountName, config.SharedKey, config.UseHTTPS,
                containerName, blobName,
                leaseBreakPeriod,
                timeoutSeconds, xmsclientrequestId);
        }