@liuruicai
2018-06-25T19:53:58.000000Z
字数 1382
阅读 529
Learn
概念笔记
is a method for designing object oriented APIs based extensively on method chaining with the goal of making the readability of the source code close to that of orinary written prose, essential creating a domain-specific language within the interface.
是软件工程中面向对象API的一种实现方式,以提供更为可读的源代码。
通常采取方法瀑布调用 (具体说是方法链式调用)来转发一系列对象方法调用的上下文。
// Find translations for English words containing the letter "a",
// sorted by length and displayed in uppercase
IEnumerable<string> query = translations
.Where (t => t.Key.Contains("a"))
.OrderBy (t => t.Value.Length)
.Select (t => t.Value.ToUpper());
CSRF attacks are possible against web apps that use cookies for authentication because:
Basic and Digest authentication are also vulnerable.
CSRF vulnerabilities are fundamentally a problem with the web appp, not the end user.
Don't be concerned about CSRF vulneability if the token is stored in the browser's local storage. CSRF is a concern when the token is stored in a cookie.