Skip to content

Commit 60e65d4

Browse files
committed
separate DF SDK classes from DF worker classes
fix typo remove TODOs remove commented-out code
1 parent 67c81cc commit 60e65d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+35
-9
lines changed

src/Durable/Commands/InvokeDurableActivityCommand.cs renamed to src/DurableSDK/Commands/InvokeDurableActivityCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ protected override void EndProcessing()
4343
{
4444
var privateData = (Hashtable)MyInvocation.MyCommand.Module.PrivateData;
4545
var context = (OrchestrationContext)privateData[SetFunctionInvocationContextCommand.ContextKey];
46-
var loadedFunctions = FunctionLoader.GetLoadedFunctions();
46+
// var loadedFunctions = FunctionLoader.GetLoadedFunctions();
4747

4848
var task = new ActivityInvocationTask(FunctionName, Input, RetryOptions);
49-
ActivityInvocationTask.ValidateTask(task, loadedFunctions);
49+
// ActivityInvocationTask.ValidateTask(task, loadedFunctions);
5050

5151
_durableTaskHandler.StopAndInitiateDurableTaskOrReplay(
5252
task, context, NoWait.IsPresent,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/Durable/Tasks/ActivityInvocationTask.cs renamed to src/DurableSDK/Tasks/ActivityInvocationTask.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.Functions.PowerShellWorker.Durable.Tasks
1616
using Microsoft.Azure.Functions.PowerShellWorker;
1717
using Microsoft.Azure.Functions.PowerShellWorker.Durable;
1818
using Microsoft.Azure.Functions.PowerShellWorker.Durable.Actions;
19+
using Microsoft.Azure.Functions.PowerShellWorker.DurableWorker;
1920

2021
public class ActivityInvocationTask : DurableTask
2122
{

src/Durable/DurableBindings.cs renamed to src/DurableWorker/DurableBindings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
namespace Microsoft.Azure.Functions.PowerShellWorker.Durable
6+
namespace Microsoft.Azure.Functions.PowerShellWorker.DurableWorker
77
{
88
using System;
99

src/Durable/DurableController.cs renamed to src/DurableWorker/DurableController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace Microsoft.Azure.Functions.PowerShellWorker.Durable
1616
using WebJobs.Script.Grpc.Messages;
1717

1818
using PowerShellWorker.Utility;
19+
using Microsoft.Azure.Functions.PowerShellWorker.DurableWorker;
1920

2021
/// <summary>
2122
/// The main entry point for durable functions support.

src/Durable/DurableFunctionInfo.cs renamed to src/DurableWorker/DurableFunctionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
namespace Microsoft.Azure.Functions.PowerShellWorker.Durable
6+
namespace Microsoft.Azure.Functions.PowerShellWorker.DurableWorker
77
{
88
internal class DurableFunctionInfo
99
{

src/Durable/DurableFunctionInfoFactory.cs renamed to src/DurableWorker/DurableFunctionInfoFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
namespace Microsoft.Azure.Functions.PowerShellWorker.Durable
6+
namespace Microsoft.Azure.Functions.PowerShellWorker.DurableWorker
77
{
88
using System.Linq;
99

src/Durable/DurableFunctionType.cs renamed to src/DurableWorker/DurableFunctionType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
namespace Microsoft.Azure.Functions.PowerShellWorker.Durable
6+
namespace Microsoft.Azure.Functions.PowerShellWorker.DurableWorker
77
{
88
internal enum DurableFunctionType
99
{

src/FunctionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
namespace Microsoft.Azure.Functions.PowerShellWorker
1717
{
18-
using Durable;
18+
using DurableWorker;
1919

2020
/// <summary>
2121
/// This type represents the metadata of an Azure PowerShell Function.

src/RequestProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using Microsoft.Azure.Functions.PowerShellWorker.PowerShell;
1414
using Microsoft.Azure.Functions.PowerShellWorker.Utility;
1515
using Microsoft.Azure.Functions.PowerShellWorker.DependencyManagement;
16-
using Microsoft.Azure.Functions.PowerShellWorker.Durable;
16+
using Microsoft.Azure.Functions.PowerShellWorker.DurableWorker;
1717
using Microsoft.Azure.WebJobs.Script.Grpc.Messages;
1818

1919
namespace Microsoft.Azure.Functions.PowerShellWorker

test/E2E/TestFunctionApp/profile.ps1

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Azure Functions profile.ps1
2+
#
3+
# This profile.ps1 will get executed every "cold start" of your Function App.
4+
# "cold start" occurs when:
5+
#
6+
# * A Function App starts up for the very first time
7+
# * A Function App starts up after being de-allocated due to inactivity
8+
#
9+
# You can define helper functions, run commands, or specify environment variables
10+
# NOTE: any variables defined that are not environment variables will get reset after the first execution
11+
12+
# Authenticate with Azure PowerShell using MSI.
13+
# Remove this if you are not planning on using MSI or Azure PowerShell.
14+
if ($env:MSI_SECRET) {
15+
Disable-AzContextAutosave -Scope Process | Out-Null
16+
Connect-AzAccount -Identity
17+
}
18+
19+
# Uncomment the next line to enable legacy AzureRm alias in Azure PowerShell.
20+
# Enable-AzureRmAlias
21+
22+
# You can also define functions or aliases that can be referenced in any of your PowerShell functions.

test/Unit/Durable/DurableControllerTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace Microsoft.Azure.Functions.PowerShellWorker.Test.Durable
1111
using System.Collections.ObjectModel;
1212

1313
using Microsoft.Azure.WebJobs.Script.Grpc.Messages;
14+
using Microsoft.Azure.Functions.PowerShellWorker.DurableWorker;
1415
using Microsoft.Azure.Functions.PowerShellWorker.Durable;
1516
using Microsoft.Azure.Functions.PowerShellWorker.Utility;
1617
using Newtonsoft.Json;

test/Unit/Durable/DurableFunctionInfoFactoryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.Azure.Functions.PowerShellWorker.Test.Durable
1010

1111
using Xunit;
1212

13-
using Microsoft.Azure.Functions.PowerShellWorker.Durable;
13+
using Microsoft.Azure.Functions.PowerShellWorker.DurableWorker;
1414

1515
public class DurableFunctionInfoFactoryTests
1616
{

test/Unit/PowerShell/PowerShellManagerTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ namespace Microsoft.Azure.Functions.PowerShellWorker.Test
1818
using System.Collections.ObjectModel;
1919
using System.Management.Automation;
2020
using Microsoft.Azure.Functions.PowerShellWorker.Durable;
21+
using Microsoft.Azure.Functions.PowerShellWorker.DurableWorker;
2122
using Newtonsoft.Json;
2223

2324
internal class TestUtils

0 commit comments

Comments
 (0)