// Protected Methods (1) protected override void OnHandleRequest(IHandleRequestContext context) { var serializer = ServiceLocator.Current.GetInstance <ISerializer>(); var json = serializer.ToJson(new JsonParameterResult() { code = 666, msg = "Master of Darkness", tag = new Dictionary <string, object>() { { "a", 1 }, { "b", 2 }, } }); var o = serializer.FromJson <JsonParameterResult>(json); using (var stream = this.Module.Context.TryGetResourceStream("web.Goethe.TXT")) { using (var reader = new StreamReader(stream)) { var txt = reader.ReadToEnd(); } } }
// Protected Methods (1) protected override void OnHandleRequest(IHandleRequestContext context) { }
/// <summary> /// The logic for <see cref="HttpModuleBase.HandleRequest(IHttpRequestContext)" /> method. /// </summary> /// <param name="context">The underlying context.</param> protected abstract void OnHandleRequest(IHandleRequestContext context);