-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
187 lines (141 loc) · 14.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,maximum-scale=2">
<link rel="stylesheet" type="text/css" media="screen" href="/CloudStorageAccount/assets/css/style.css?v=7673c1cb3fcd8353ab1e7be3dd2c334848e52422">
<!-- Begin Jekyll SEO tag v2.8.0 -->
<title>CloudStorageAccount | Brings back the CloudStorageAccount for Azure Storage v12+</title>
<meta name="generator" content="Jekyll v3.9.5" />
<meta property="og:title" content="CloudStorageAccount" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Brings back the CloudStorageAccount for Azure Storage v12+" />
<meta property="og:description" content="Brings back the CloudStorageAccount for Azure Storage v12+" />
<meta property="og:site_name" content="CloudStorageAccount" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="CloudStorageAccount" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebSite","description":"Brings back the CloudStorageAccount for Azure Storage v12+","headline":"CloudStorageAccount","name":"CloudStorageAccount","url":"/CloudStorageAccount/"}</script>
<!-- End Jekyll SEO tag -->
<!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
<!-- Setup Google Analytics -->
<!-- You can set your favicon here -->
<!-- link rel="shortcut icon" type="image/x-icon" href="/CloudStorageAccount/favicon.ico" -->
<!-- end custom head snippets -->
</head>
<body>
<!-- HEADER -->
<div id="header_wrap" class="outer">
<header class="inner">
<a id="forkme_banner" href="https://github.com/devlooped/CloudStorageAccount">View on GitHub</a>
<h1 id="project_title">CloudStorageAccount</h1>
<h2 id="project_tagline">Brings back the CloudStorageAccount for Azure Storage v12+</h2>
</header>
</div>
<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
<h1 id="-cloudstorageaccount"><img src="https://raw.githubusercontent.com/devlooped/CloudStorageAccount/main/assets/img/icon-32.png" alt="Icon" /> CloudStorageAccount</h1>
<p><a href="https://www.nuget.org/packages/Devlooped.CloudStorageAccount"><img src="https://img.shields.io/nuget/v/Devlooped.CloudStorageAccount.svg?color=royalblue" alt="Version" /></a>
<a href="https://www.nuget.org/packages/Devlooped.CloudStorageAccount"><img src="https://img.shields.io/nuget/dt/Devlooped.CloudStorageAccount.svg?color=green" alt="Downloads" /></a>
<a href="https://github.com/devlooped/CloudStorageAccount/blob/main/license.txt"><img src="https://img.shields.io/github/license/devlooped/CloudStorageAccount.svg?color=blue" alt="License" /></a>
<a href="https://github.com/devlooped/CloudStorageAccount/actions"><img src="https://github.com/devlooped/CloudStorageAccount/workflows/build/badge.svg?branch=main" alt="Build" /></a></p>
<p>CloudStorageAccount for Azure Storage v12+.</p>
<h1 id="overview">Overview</h1>
<!-- #Overview -->
<!-- include https://github.com/devlooped/.github/raw/main/sponsorlink.md -->
<p><em>This project uses <a href="https://github.com/devlooped#sponsorlink">SponsorLink</a>
and may issue IDE-only warnings if no active sponsorship is detected.</em></p>
<!-- https://github.com/devlooped/.github/raw/main/sponsorlink.md -->
<p>The new unified Azure Storage and Tables client libraries do away with the
<a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.cloudstorageaccount?view=azure-dotnet">CloudStorageAccount</a>
that was typically used. This makes migration a bit painful, as noted in:</p>
<ul>
<li><a href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/MigrationGuide.md">Azure.Data.Tables</a> migration guide</li>
<li><a href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/AzureStorageNetMigrationV12.md">Azure.Storage.Blobs</a> migration guide</li>
</ul>
<p>This package provides a (mostly) drop-in replacement, with source code brought (and updated)
from the <a href="https://github.com/Azure/azure-storage-net/blob/master/Lib/Common/CloudStorageAccount.cs">original location</a>.
Just replace the old namespace <code class="language-plaintext highlighter-rouge">Microsoft.Azure.Storage</code> with <code class="language-plaintext highlighter-rouge">Devlooped</code> and you’re mostly done.</p>
<p>In addition to the legacy, backwards-compatible APIs so projects compile right away with this
package when upgrading to v12 client libraries, there are a few newer APIs that are more aligned
with the new APIs, such as:</p>
<ul>
<li>CloudStorageAccount.CreateBlobServiceClient (extension method)</li>
<li>CloudStorageAccount.CreateQueueServiceClient (extension method)</li>
<li>CloudStorageAccount.CreateTableServiceClient (extension method)</li>
</ul>
<p>These make it more explicit that you’re creating instances of the new service clients.</p>
<h2 id="usage">Usage</h2>
<div class="language-csharp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">var</span> <span class="n">account</span> <span class="p">=</span> <span class="n">CloudStorageAccount</span><span class="p">.</span><span class="n">DevelopmentStorageAccount</span><span class="p">;</span>
<span class="kt">var</span> <span class="n">tableService</span> <span class="p">=</span> <span class="n">account</span><span class="p">.</span><span class="nf">CreateTableServiceClient</span><span class="p">();</span>
<span class="c1">// legacy invocation works too: account.CreateCloudTableClient();</span>
<span class="c1">// Can also access the endpoints for each service:</span>
<span class="n">Console</span><span class="p">.</span><span class="nf">WriteLine</span><span class="p">(</span><span class="n">account</span><span class="p">.</span><span class="n">BlobEndpoint</span><span class="p">);</span>
<span class="n">Console</span><span class="p">.</span><span class="nf">WriteLine</span><span class="p">(</span><span class="n">account</span><span class="p">.</span><span class="n">QueueEndpoint</span><span class="p">);</span>
<span class="n">Console</span><span class="p">.</span><span class="nf">WriteLine</span><span class="p">(</span><span class="n">account</span><span class="p">.</span><span class="n">TableEndpoint</span><span class="p">);</span>
</code></pre></div></div>
<!-- #Overview -->
<h2 id="dogfooding">Dogfooding</h2>
<p><a href="https://pkg.kzu.io/index.json"><img src="https://img.shields.io/endpoint?url=https://shields.kzu.io/vpre/Devlooped.CloudStorageAccount/main&label=nuget.ci&color=brightgreen" alt="CI Version" /></a>
<a href="https://github.com/devlooped/CloudStorageAccount/actions"><img src="https://github.com/devlooped/CloudStorageAccount/workflows/build/badge.svg?branch=main" alt="Build" /></a></p>
<p>We also produce CI packages from branches and pull requests so you can dogfood builds as quickly as they are produced.</p>
<p>The CI feed is <code class="language-plaintext highlighter-rouge">https://pkg.kzu.io/index.json</code>.</p>
<p>The versioning scheme for packages is:</p>
<ul>
<li>PR builds: <em>42.42.42-pr</em><code class="language-plaintext highlighter-rouge">[NUMBER]</code></li>
<li>Branch builds: <em>42.42.42-</em><code class="language-plaintext highlighter-rouge">[BRANCH]</code>.<code class="language-plaintext highlighter-rouge">[COMMITS]</code></li>
</ul>
<!-- include https://github.com/devlooped/sponsors/raw/main/footer.md -->
<h1 id="sponsors">Sponsors</h1>
<!-- sponsors.md -->
<p><a href="https://github.com/clarius"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/clarius.png" alt="Clarius Org" title="Clarius Org" /></a>
<a href="https://github.com/KirillOsenkov"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/KirillOsenkov.png" alt="Kirill Osenkov" title="Kirill Osenkov" /></a>
<a href="https://github.com/MFB-Technologies-Inc"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/MFB-Technologies-Inc.png" alt="MFB Technologies, Inc." title="MFB Technologies, Inc." /></a>
<a href="https://github.com/torutek-gh"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/torutek-gh.png" alt="Torutek" title="Torutek" /></a>
<a href="https://github.com/drivenet"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/drivenet.png" alt="DRIVE.NET, Inc." title="DRIVE.NET, Inc." /></a>
<a href="https://github.com/Keflon"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Keflon.png" alt="Keith Pickford" title="Keith Pickford" /></a>
<a href="https://github.com/tbolon"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/tbolon.png" alt="Thomas Bolon" title="Thomas Bolon" /></a>
<a href="https://github.com/kfrancis"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/kfrancis.png" alt="Kori Francis" title="Kori Francis" /></a>
<a href="https://github.com/twenzel"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/twenzel.png" alt="Toni Wenzel" title="Toni Wenzel" /></a>
<a href="https://github.com/unoplatform"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/unoplatform.png" alt="Uno Platform" title="Uno Platform" /></a>
<a href="https://github.com/dansiegel"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/dansiegel.png" alt="Dan Siegel" title="Dan Siegel" /></a>
<a href="https://github.com/rbnswartz"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/rbnswartz.png" alt="Reuben Swartz" title="Reuben Swartz" /></a>
<a href="https://github.com/jfoshee"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jfoshee.png" alt="Jacob Foshee" title="Jacob Foshee" /></a>
<a href="https://github.com/eajhnsn1"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Mrxx99.png" alt="" title="")](https://github.com/Mrxx99)
[![Eric Johnson](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/eajhnsn1.png "Eric Johnson" /></a>
<a href="https://github.com/IxTechnologies"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/IxTechnologies.png" alt="Ix Technologies B.V." title="Ix Technologies B.V." /></a>
<a href="https://github.com/davidjenni"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/davidjenni.png" alt="David JENNI" title="David JENNI" /></a>
<a href="https://github.com/Jonathan-Hickey"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Jonathan-Hickey.png" alt="Jonathan " title="Jonathan " /></a>
<a href="https://github.com/akunzai"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/akunzai.png" alt="Charley Wu" title="Charley Wu" /></a>
<a href="https://github.com/jakobt"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jakobt.png" alt="Jakob Tikjøb Andersen" title="Jakob Tikjøb Andersen" /></a>
<a href="https://github.com/seanalexander"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/seanalexander.png" alt="Seann Alexander" title="Seann Alexander" /></a>
<a href="https://github.com/tinohager"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/tinohager.png" alt="Tino Hager" title="Tino Hager" /></a>
<a href="https://github.com/ploeh"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/ploeh.png" alt="Mark Seemann" title="Mark Seemann" /></a>
<a href="https://github.com/KenBonny"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/KenBonny.png" alt="Ken Bonny" title="Ken Bonny" /></a>
<a href="https://github.com/SimonCropp"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/SimonCropp.png" alt="Simon Cropp" title="Simon Cropp" /></a>
<a href="https://github.com/agileworks-eu"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/agileworks-eu.png" alt="agileworks-eu" title="agileworks-eu" /></a>
<a href="https://github.com/sorahex"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/sorahex.png" alt="sorahex" title="sorahex" /></a>
<a href="https://github.com/arsdragonfly"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/arsdragonfly.png" alt="Zheyu Shen" title="Zheyu Shen" /></a>
<a href="https://github.com/vezel-dev"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/vezel-dev.png" alt="Vezel" title="Vezel" /></a>
<a href="https://github.com/ChilliCream"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/ChilliCream.png" alt="ChilliCream" title="ChilliCream" /></a>
<a href="https://github.com/4OTC"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/4OTC.png" alt="4OTC" title="4OTC" /></a>
<a href="https://github.com/v-limo"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/v-limo.png" alt="Vincent Limo" title="Vincent Limo" /></a></p>
<!-- sponsors.md -->
<p><a href="https://github.com/sponsors/devlooped"><img src="https://raw.githubusercontent.com/devlooped/sponsors/main/sponsor.png" alt="Sponsor this project" title="Sponsor this project" /></a>
</p>
<p><a href="https://github.com/sponsors">Learn more about GitHub Sponsors</a></p>
<!-- https://github.com/devlooped/sponsors/raw/main/footer.md -->
</section>
</div>
<!-- FOOTER -->
<div id="footer_wrap" class="outer">
<footer class="inner">
<p class="copyright">CloudStorageAccount maintained by <a href="https://github.com/devlooped">devlooped</a></p>
<p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
</footer>
</div>
</body>
</html>