Beispiel #1
0
        public ActionResult Invoke(InvokeRequest invokeRequest)
        {
            var user     = this.AllorsUser ?? Singleton.Instance(this.AllorsSession).Guest;
            var response = new InvokeResponseBuilder(this.AllorsSession, user, invokeRequest, Group);

            return(this.JsonSuccess(response.Build()));
        }
Beispiel #2
0
 public Task <InvokeResponse> Invoke(InvokeRequest request, InvokeOptions options = null)
 {
     try
     {
         using (var session = this.Database.CreateSession())
         {
             var acls            = new WorkspaceAccessControlLists(session.GetUser());
             var responseBuilder = new InvokeResponseBuilder(session, request, acls);
             var response        = responseBuilder.Build();
             return(System.Threading.Tasks.Task.FromResult(response));
         }
     }
     catch (Exception e)
     {
         this.Logger.LogError(e, "InvokeRequest {request}", request);
         throw;
     }
 }