1) Is it possible to use only these two functions without the functionality of a message-based web service? ServiceStack needs to be initialized, and it gives me an error during initialization twice (in both projects).
ServiceStack.Mvc NuGet, ServiceStackController, MVC-, ServiceStack. - , , , ICacheClient.
, WebSphere ServiceStack, AppHost - . ServiceStack ASP.NET IHttpHandler, Web.config, , , ServiceStack, , - :
var cache = AppHost.Resolve<ICacheClient>();
2) ServiceStack ?
AppHost, - ( ), AppHost , , - .
ServiceStack , AppHostBase, :
public class AppHost : AppHostBase
{
public AppHost() : base("My Service",
typeof(AServiceInDll1).Assembly, typeof(AServiceInDll2).Assembly){}
}
2) . BL ServiceStack, / cookie ( ServiceStack) mvc.
ServiceStack.UseCases CustomAuthenticationMvc MVC, ServiceStack.
3) ServiceStack BL, , . ? - ?
ServiceStack, #, .. - ICacheClient .
base.SessionAs<T> ServiceStack.Mvc ServiceStackController . , IHttpRequest.SaveSession(). ASP.NET( ASP.NET HttpContext singleton, ), cookie ServiceStack ss-id/ss-pid, () , .
, - ASP.NET System.Web, , , -.
, ServiceStack.
ASP.NET- ServiceStack ASP.NET MVC
, , ServiceStack ASP.NET MVC, ServiceStack .
ServiceStack IHttpRequest IHttpResponse ( HTTP/Controller):
var ssHttpRequest = System.Web.HttpContext.Current.Request.ToRequest();
var ssHttpResponse = System.Web.HttpContext.Current.Response.ToResponse();
, ( IHttpRequest, IHttpResponse):
var ssRequestContext = System.Web.HttpContext.Current.ToRequestContext();