@@ -114,9 +114,9 @@ public static class HelloCitiesTypedStarter
114114}
115115
116116[DurableTask (nameof (HelloCitiesTyped ))]
117- public class HelloCitiesTyped : TaskOrchestratorBase <string , string >
117+ public class HelloCitiesTyped : TaskOrchestrator <string ? , string >
118118{
119- protected async override Task <string ?> OnRunAsync (TaskOrchestrationContext context , string ? input )
119+ public async override Task <string > RunAsync (TaskOrchestrationContext context , string ? input )
120120 {
121121 string result = " " ;
122122 result += await context .CallSayHelloTypedAsync (" Tokyo" ) + " " ;
@@ -127,7 +127,7 @@ public class HelloCitiesTyped : TaskOrchestratorBase<string, string>
127127}
128128
129129[DurableTask (nameof (SayHelloTyped ))]
130- public class SayHelloTyped : TaskActivityBase <string , string >
130+ public class SayHelloTyped : TaskActivity <string , string >
131131{
132132 readonly ILogger ? logger ;
133133
@@ -136,10 +136,10 @@ public class SayHelloTyped : TaskActivityBase<string, string>
136136 this .logger = loggerFactory ? .CreateLogger <SayHelloTyped >();
137137 }
138138
139- protected override string OnRun (TaskActivityContext context , string ? cityName )
139+ public override Task < string > RunAsync (TaskActivityContext context , string cityName )
140140 {
141141 this .logger ? .LogInformation (" Saying hello to {name}" , cityName );
142- return $" Hello, {cityName }!" ;
142+ return Task . FromResult ( $" Hello, {cityName }!" ) ;
143143 }
144144}
145145```
@@ -155,9 +155,6 @@ There are also several features that aren't yet available:
155155* Durable Entities is not yet supported.
156156* APIs for calling HTTP endpoints are not yet available.
157157* Several instance management APIs are not yet implemented.
158- * Some orchestration context properties, like the parent instance ID, are not yet available.
159-
160- Feature parity with Durable Functions can be expected in the 1.0 release.
161158
162159## Contributing
163160
0 commit comments