/// <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)); }
/// <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 })); }
/// <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)); }