コード例 #1
0
ファイル: Table.cs プロジェクト: bbakermmc/sqlservertoazure
        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));
        }
コード例 #2
0
ファイル: Table.cs プロジェクト: bbakermmc/sqlservertoazure
        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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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));
        }
コード例 #8
0
ファイル: Table.cs プロジェクト: bbakermmc/sqlservertoazure
        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);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }