Revert file-scoped namespace

This commit is contained in:
Sipke Schoorstra 2021-12-20 17:24:24 +01:00
parent 56f70ea9e2
commit ee6296d930
2 changed files with 10 additions and 8 deletions

View file

@ -3,9 +3,10 @@ using System.Threading;
using System.Threading.Tasks;
using Elsa.Server.Api.Services;
namespace Elsa.WorkflowTesting.Api.Services;
public class WorkflowTestingServerFeatureProvider : IServerFeatureProvider
namespace Elsa.WorkflowTesting.Api.Services
{
public ValueTask<IEnumerable<string>> GetFeaturesAsync(CancellationToken cancellationToken) => ValueTask.FromResult<IEnumerable<string>>(new[] { "WorkflowTesting" });
public class WorkflowTestingServerFeatureProvider : IServerFeatureProvider
{
public ValueTask<IEnumerable<string>> GetFeaturesAsync(CancellationToken cancellationToken) => ValueTask.FromResult<IEnumerable<string>>(new[] { "WorkflowTesting" });
}
}

View file

@ -2,9 +2,10 @@ using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Elsa.Server.Api.Services;
public interface IServerFeatureProvider
namespace Elsa.Server.Api.Services
{
ValueTask<IEnumerable<string>> GetFeaturesAsync(CancellationToken cancellationToken);
public interface IServerFeatureProvider
{
ValueTask<IEnumerable<string>> GetFeaturesAsync(CancellationToken cancellationToken);
}
}