public async Task <ApplicationControlResult> AddAsync(string sessionKey, ApplicationControl applicationControl) { return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token => { var result = await applicationControlProcessor.AddAsync(applicationControl, token); return new ApplicationControlResult { ProcessResult = new ProcessResult { Result = true }, ApplicationControl = result, }; }, logger)); }
public async Task <ApplicationControl> Add(ApplicationControl applicationControl, CancellationToken token) => await applicationControlProcessor.AddAsync(applicationControl, token);