-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds
IOrleansFunctionProvider
so that only one function needs to be…
… modified when adding a new Orleans example.
- Loading branch information
Showing
4 changed files
with
44 additions
and
11 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
11 changes: 11 additions & 0 deletions
11
src/Kritner.OrleansGettingStarted.Client/OrleansFunctionExamples/IOrleansFunctionProvider.cs
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Kritner.OrleansGettingStarted.Client.OrleansFunctionExamples | ||
{ | ||
public interface IOrleansFunctionProvider | ||
{ | ||
IList<IOrleansFunction> GetOrleansFunctions(); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/Kritner.OrleansGettingStarted.Client/OrleansFunctionExamples/OrleansFunctionProvider.cs
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Kritner.OrleansGettingStarted.Client.OrleansFunctionExamples | ||
{ | ||
public class OrleansFunctionProvider : IOrleansFunctionProvider | ||
{ | ||
public IList<IOrleansFunction> GetOrleansFunctions() | ||
{ | ||
return new List<IOrleansFunction>() | ||
{ | ||
new HelloWorld(), | ||
new MultipleInstantiations(), | ||
new StatefulWork() | ||
}; | ||
} | ||
} | ||
} |
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