コード例 #1
0
 public PropertyContainer(Models.AzureBlobFileSystemConfiguration protocolObject) : base(BindingState.Bound)
 {
     this.AccountKeyProperty = this.CreatePropertyAccessor(
         protocolObject.AccountKey,
         nameof(AccountKey),
         BindingAccess.Read);
     this.AccountNameProperty = this.CreatePropertyAccessor(
         protocolObject.AccountName,
         nameof(AccountName),
         BindingAccess.Read);
     this.BlobfuseOptionsProperty = this.CreatePropertyAccessor(
         protocolObject.BlobfuseOptions,
         nameof(BlobfuseOptions),
         BindingAccess.Read);
     this.ContainerNameProperty = this.CreatePropertyAccessor(
         protocolObject.ContainerName,
         nameof(ContainerName),
         BindingAccess.Read);
     this.IdentityReferenceProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.IdentityReference, o => new ComputeNodeIdentityReference(o).Freeze()),
         nameof(IdentityReference),
         BindingAccess.Read);
     this.RelativeMountPathProperty = this.CreatePropertyAccessor(
         protocolObject.RelativeMountPath,
         nameof(RelativeMountPath),
         BindingAccess.Read);
     this.SasKeyProperty = this.CreatePropertyAccessor(
         protocolObject.SasKey,
         nameof(SasKey),
         BindingAccess.Read);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the MountConfiguration class.
 /// </summary>
 /// <param name="azureBlobFileSystemConfiguration">The Azure Storage
 /// Container to mount using blob FUSE on each node.</param>
 /// <param name="nfsMountConfiguration">The NFS file system to mount on
 /// each node.</param>
 /// <param name="cifsMountConfiguration">The CIFS/SMB file system to
 /// mount on each node.</param>
 /// <param name="azureFileShareConfiguration">The Azure File Share to
 /// mount on each node.</param>
 public MountConfiguration(AzureBlobFileSystemConfiguration azureBlobFileSystemConfiguration = default(AzureBlobFileSystemConfiguration), NFSMountConfiguration nfsMountConfiguration = default(NFSMountConfiguration), CIFSMountConfiguration cifsMountConfiguration = default(CIFSMountConfiguration), AzureFileShareConfiguration azureFileShareConfiguration = default(AzureFileShareConfiguration))
 {
     AzureBlobFileSystemConfiguration = azureBlobFileSystemConfiguration;
     NfsMountConfiguration            = nfsMountConfiguration;
     CifsMountConfiguration           = cifsMountConfiguration;
     AzureFileShareConfiguration      = azureFileShareConfiguration;
     CustomInit();
 }