private Either <Error, Permission> ExtractPermissionToCheck( IRequestHandler <TRequest, TResponse> handler) { return(_handlerMetadataService.GetHandlerMetadata(handler) .Map(m => new Permission(m.Context, m.Action))); }
private Either <Error, (string Context, string Action)> GetFeatureInfo( IRequestHandler <TRequest, TResponse> handler) { return(_handlerMetadataService.GetHandlerMetadata(handler) .Map(m => (m.Context, m.Action))); }