-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
// } | ||
// } | ||
//} |