示例#1
0
        /// <summary>
        /// Gets the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>System.Object.</returns>
        public object Get(GetNetworkDevices request)
        {
            var result = _networkManager.GetNetworkDevices()
                         .OrderBy(i => i.Path)
                         .ToList();

            return(ToOptimizedSerializedResultUsingCache(result));
        }
示例#2
0
 /// <summary>
 /// Gets the network computers.
 /// </summary>
 /// <returns>IEnumerable{FileSystemEntryInfo}.</returns>
 private IEnumerable <FileSystemEntryInfo> GetNetworkDevices()
 {
     return(_networkManager.GetNetworkDevices().Select(c => new FileSystemEntryInfo
     {
         Name = c,
         Path = NetworkPrefix + c,
         Type = FileSystemEntryType.NetworkComputer
     }));
 }
示例#3
0
        /// <summary>
        /// Gets the specified request.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>System.Object.</returns>
        public object Get(GetNetworkDevices request)
        {
            var result = _networkManager.GetNetworkDevices().ToList();

            return(ToOptimizedResult(result));
        }