- Mastering ServiceStack
- Andreas Niedermair
- 269字
- 2021-07-09 21:27:14
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "As the NuGet
package names often do not match the namespaces within, the NuGet
package names are mentioned separately."
A block of code is set as follows:
public class Task { public int Id { get; set; } public string Title { get; set; } public int UserId { get; set; } } interface IService { Task GetTaskById(int id); Task[] GetAllTasks(); Task[] GetTasksById(int[] ids); Task[] GetTasksForUserId(int userId); Task[] GetTasksByTitle(string title); Task[] GetTasksByTitleForUserId(string title, int userId); }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold, as shown:
private KeyValuePair<string, string>? GetCustomAuth(IRequest httpReq)
{
var hasCredentials = httpReq.Dto as IHasCredentials;
if (hasCredentials == null)
{
return null;
}
var userName = hasCredentials.UserName;
var password = hasCredentials.Password;
if (string.IsNullOrWhiteSpace(userName) ||
string.IsNullOrWhiteSpace(password))
{
return null;
}
return new KeyValuePair<string, string>(userName, password);
}
Any command-line input or output is written as follows:
Hello John Doe!
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "One of the key points of ServiceStack is the Code-First approach."
- Go Web編程
- Learning Real-time Processing with Spark Streaming
- 零基礎(chǔ)玩轉(zhuǎn)區(qū)塊鏈
- Java從入門到精通(第5版)
- Mastering Scientific Computing with R
- UI智能化與前端智能化:工程技術(shù)、實(shí)現(xiàn)方法與編程思想
- INSTANT Django 1.5 Application Development Starter
- 可解釋機(jī)器學(xué)習(xí):模型、方法與實(shí)踐
- SQL Server數(shù)據(jù)庫管理與開發(fā)兵書
- iPhone應(yīng)用開發(fā)從入門到精通
- Python項(xiàng)目實(shí)戰(zhàn)從入門到精通
- Visual Basic程序設(shè)計習(xí)題與上機(jī)實(shí)踐
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- Mastering ArcGIS Server Development with JavaScript
- Building Web and Mobile ArcGIS Server Applications with JavaScript(Second Edition)