コード例 #1
0
ファイル: DiskSpace.cs プロジェクト: RoDaniel/featurehouse
 public static DiskSpace GetiFolderDiskSpace( string iFolderID )
 {
     long limit;
        Simias.DomainServices.DomainAgent da = new Simias.DomainServices.DomainAgent();
        long spaceUsed = da.GetDomainDiskSpaceForCollection( iFolderID, out limit );
        return new DiskSpace( spaceUsed, limit );
 }
コード例 #2
0
ファイル: DiskSpace.cs プロジェクト: RoDaniel/featurehouse
 public static DiskSpace GetMemberDiskSpace( string UserID )
 {
     long limit;
        Simias.DomainServices.DomainAgent da = new Simias.DomainServices.DomainAgent();
        long spaceUsed = da.GetDomainDiskSpaceForMember( UserID, out limit );
        return new DiskSpace( spaceUsed, limit );
 }
コード例 #3
0
        /// <summary>
        /// WebMethod that gets the DiskSpaceQuota for a given iFolder
        /// </summary>
        /// <param name = "iFolderID">
        /// The ID of the iFolder to get the DiskSpaceQuota
        /// </param>
        /// <returns>
        /// DiskSpaceQuota for the specified iFolder
        /// </returns>
        public static DiskSpace GetiFolderDiskSpace(string iFolderID)
        {
            long limit;
            long avail;

            Simias.DomainServices.DomainAgent da = new Simias.DomainServices.DomainAgent();
            long spaceUsed = da.GetDomainDiskSpaceForCollection(iFolderID, out limit, out avail);

            return(new DiskSpace(spaceUsed, limit, avail));
        }