Skip to content

Commit

Permalink
Remove unused scale classes
Browse files Browse the repository at this point in the history
  • Loading branch information
alrod committed Aug 28, 2023
1 parent 6a08852 commit b4e5846
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
20 changes: 10 additions & 10 deletions src/WebJobs.Script/Scale/TargetScalerVote.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//// Licensed under the MIT License. See License.txt in the project root for license information.

using Microsoft.Azure.WebJobs.Host.Scale;
//using Microsoft.Azure.WebJobs.Host.Scale;

namespace Microsoft.Azure.WebJobs.Script.Scale
{
internal class TargetScalerVote
{
public ScaleVote Vote { get; set; }
//namespace Microsoft.Azure.WebJobs.Script.Scale
//{
// internal class TargetScalerVote
// {
// public ScaleVote Vote { get; set; }

public int TargetWorkerCount { get; set; }
}
}
// public int TargetWorkerCount { get; set; }
// }
//}
62 changes: 31 additions & 31 deletions test/WebJobs.Script.Tests.Shared/TestTargetScaler.cs
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//// Copyright (c) .NET Foundation. All rights reserved.
//// Licensed under the MIT License. See License.txt in the project root for license information.

using System;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs.Host.Scale;
//using System;
//using System.Threading.Tasks;
//using Microsoft.Azure.WebJobs.Host.Scale;

namespace Microsoft.Azure.WebJobs.Script.Tests
{
internal class TestTargetScaler : ITargetScaler
{
public TargetScalerDescriptor TargetScalerDescriptor { get; set; }
//namespace Microsoft.Azure.WebJobs.Script.Tests
//{
// internal class TestTargetScaler : ITargetScaler
// {
// public TargetScalerDescriptor TargetScalerDescriptor { get; set; }

public TargetScalerResult Result { get; set; }
// public TargetScalerResult Result { get; set; }

public virtual Task<TargetScalerResult> GetScaleResultAsync(TargetScalerContext context)
{
return Task.FromResult(Result);
}
}
// public virtual Task<TargetScalerResult> GetScaleResultAsync(TargetScalerContext context)
// {
// return Task.FromResult(Result);
// }
// }

internal class TestTargetScaler2 : TestTargetScaler
{
public override Task<TargetScalerResult> GetScaleResultAsync(TargetScalerContext context)
{
throw new Exception("test");
}
}
// internal class TestTargetScaler2 : TestTargetScaler
// {
// public override Task<TargetScalerResult> GetScaleResultAsync(TargetScalerContext context)
// {
// throw new Exception("test");
// }
// }

internal class FaultyTargetScaler : TestTargetScaler
{
public override Task<TargetScalerResult> GetScaleResultAsync(TargetScalerContext context)
{
throw new NotSupportedException("test");
}
}
}
// internal class FaultyTargetScaler : TestTargetScaler
// {
// public override Task<TargetScalerResult> GetScaleResultAsync(TargetScalerContext context)
// {
// throw new NotSupportedException("test");
// }
// }
//}

0 comments on commit b4e5846

Please sign in to comment.