「ServiceStack/はじめに/最初のWebサービスを作ってみる」を編集中
ナビゲーションに移動
検索に移動
この編集を取り消せます。 下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
42行目: | 42行目: | ||
== ステップ3: Webサービスを作ってみる == | == ステップ3: Webサービスを作ってみる == | ||
− | もし「Global.asax. | + | もし「Global.asax.cs」ファイルが無ければ手動で追加する。 |
まず、ServiceStackのサービスは3つの要素から構成されるという基本を覚えよう。 | まず、ServiceStackのサービスは3つの要素から構成されるという基本を覚えよう。 | ||
92行目: | 92行目: | ||
using System.Web; | using System.Web; | ||
using System.Web.SessionState; | using System.Web.SessionState; | ||
− | + | using ServiceStack.WebHost.Endpoints; | |
− | using ServiceStack; | ||
public class Global : System.Web.HttpApplication | public class Global : System.Web.HttpApplication | ||
{ | { | ||
− | public class HelloAppHost : | + | public class HelloAppHost : AppHostBase |
{ | { | ||
//Tell Service Stack the name of your application and where to find your web services | //Tell Service Stack the name of your application and where to find your web services | ||
116行目: | 115行目: | ||
</source> | </source> | ||
− | + | これで完成である。ServiceStackに関するすべての構成はAppHostで行われる。いわゆるアプリケーションのエントリーポイントのようなものである。 | |
== 動かしてみる == | == 動かしてみる == | ||
124行目: | 123行目: | ||
== 外部リンク == | == 外部リンク == | ||
* https://github.com/ServiceStack/ServiceStack/wiki/Create-your-first-webservice | * https://github.com/ServiceStack/ServiceStack/wiki/Create-your-first-webservice | ||
− | |||
− | |||
− | |||
{{stub}} | {{stub}} |