C# Class Openchain.Server.Controllers.OpenchainController

Inheritance: Microsoft.AspNetCore.Mvc.Controller
Show file Open project: openchain/openchain

Public Methods

Method Description
OnActionExecutionAsync ( Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context, ActionExecutionDelegate next ) : System.Threading.Tasks.Task
OpenchainController ( IStorageEngine store, ILogger logger, TransactionValidator validator = null ) : System

Private Methods

Method Description
CreateErrorResponse ( string reason ) : Microsoft.AspNetCore.Mvc.ActionResult
GetChainInfo ( ) : Microsoft.AspNetCore.Mvc.ActionResult
GetRecord ( [ Name = "key")]stringkey ) : Task
Post ( ) : Task

Method Details

OnActionExecutionAsync() public method

public OnActionExecutionAsync ( Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context, ActionExecutionDelegate next ) : System.Threading.Tasks.Task
context Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext
next ActionExecutionDelegate
return System.Threading.Tasks.Task

OpenchainController() public method

public OpenchainController ( IStorageEngine store, ILogger logger, TransactionValidator validator = null ) : System
store IStorageEngine
logger ILogger
validator Openchain.Infrastructure.TransactionValidator
return System