示例#1
0
        /// <summary>
        /// Retrieve ETag and LastModified date time from response.
        /// </summary>
        /// <param name="response">The response to parse.</param>
        private void UpdateETagAndLastModified(HttpResponseMessage response)
        {
            FileShareProperties parsedProperties = ShareHttpResponseParsers.GetProperties(response);

            this.Properties.ETag         = parsedProperties.ETag;
            this.Properties.LastModified = parsedProperties.LastModified;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CloudFileShare" /> class.
 /// </summary>
 /// <param name="properties">The properties.</param>
 /// <param name="metadata">The metadata.</param>
 /// <param name="shareName">The share name.</param>
 /// <param name="serviceClient">The client to be used.</param>
 internal CloudFileShare(FileShareProperties properties, IDictionary<string, string> metadata, string shareName, CloudFileClient serviceClient)
 {
     this.StorageUri = NavigationHelper.AppendPathToUri(serviceClient.StorageUri, shareName);
     this.ServiceClient = serviceClient;
     this.Name = shareName;
     this.Metadata = metadata;
     this.Properties = properties;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CloudFileShare" /> class.
 /// </summary>
 /// <param name="properties">The properties.</param>
 /// <param name="metadata">The metadata.</param>
 /// <param name="shareName">The share name.</param>
 /// <param name="serviceClient">The client to be used.</param>
 internal CloudFileShare(FileShareProperties properties, IDictionary <string, string> metadata, string shareName, CloudFileClient serviceClient)
 {
     this.StorageUri    = NavigationHelper.AppendPathToUri(serviceClient.StorageUri, shareName);
     this.ServiceClient = serviceClient;
     this.Name          = shareName;
     this.Metadata      = metadata;
     this.Properties    = properties;
 }
 internal CloudFileShare(FileShareProperties properties, IDictionary <string, string> metadata, string shareName, DateTimeOffset?snapshotTime, CloudFileClient serviceClient)
 {
     throw new System.NotImplementedException();
 }