File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
sdk/storage/Azure.Storage.DataMovement/src Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 66using System . Globalization ;
77using System . Threading ;
88using System . Threading . Tasks ;
9+ using Azure . Storage . Common ;
910
1011namespace Azure . Storage . DataMovement
1112{
@@ -140,6 +141,9 @@ public static async Task<ServiceToServiceJobPart> CreateJobPartAsync(
140141 StorageResourceItem destinationResource ,
141142 long ? length = default )
142143 {
144+ Argument . AssertNotNull ( sourceResource , nameof ( sourceResource ) ) ;
145+ Argument . AssertNotNull ( destinationResource , nameof ( destinationResource ) ) ;
146+
143147 // Create Job Part file as we're initializing the job part
144148 ServiceToServiceJobPart part = new ServiceToServiceJobPart (
145149 job : job ,
Original file line number Diff line number Diff line change 99using System . Buffers ;
1010using Azure . Storage . Shared ;
1111using Azure . Core ;
12+ using Azure . Storage . Common ;
1213
1314namespace Azure . Storage . DataMovement
1415{
@@ -140,6 +141,9 @@ public static async Task<StreamToUriJobPart> CreateJobPartAsync(
140141 StorageResourceItem destinationResource ,
141142 long ? length = default )
142143 {
144+ Argument . AssertNotNull ( sourceResource , nameof ( sourceResource ) ) ;
145+ Argument . AssertNotNull ( destinationResource , nameof ( destinationResource ) ) ;
146+
143147 // Create Job Part file as we're initializing the job part
144148 StreamToUriJobPart part = new StreamToUriJobPart (
145149 job : job ,
Original file line number Diff line number Diff line change 77using System . IO ;
88using System . Threading ;
99using Azure . Core ;
10+ using Azure . Storage . Common ;
1011
1112namespace Azure . Storage . DataMovement
1213{
@@ -142,6 +143,9 @@ public static async Task<UriToStreamJobPart> CreateJobPartAsync(
142143 StorageResourceItem destinationResource ,
143144 long ? length = default )
144145 {
146+ Argument . AssertNotNull ( sourceResource , nameof ( sourceResource ) ) ;
147+ Argument . AssertNotNull ( destinationResource , nameof ( destinationResource ) ) ;
148+
145149 // Create Job Part file as we're initializing the job part
146150 UriToStreamJobPart part = new UriToStreamJobPart (
147151 job : job ,
You can’t perform that action at this time.
0 commit comments