Skip to content

Commit 33bbe4b

Browse files
authored
Update sign task, snupkg symbols, readme.md (#87)
1 parent b35c9cf commit 33bbe4b

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

azure-pipelines-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ steps:
4242
displayName: 'ESRP CodeSigning: Authenticode'
4343
inputs:
4444
ConnectedServiceName: 'ESRP Service'
45-
FolderPath: 'src'
45+
FolderPath: 'out/bin'
4646
Pattern: 'Microsoft.DurableTask.*.dll'
4747
signConfigType: inlineSignParams
4848
inlineOperation: |

eng/targets/InternalsVisibleTo.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
Outputs="$(GeneratedInternalsVisibleToFile)"
3333
DependsOnTargets="PrepareGenerateInternalsVisibleToFile;PrepareForBuild"
3434
Condition="'@(InternalsVisibleTo)' != ''"
35-
BeforeTargets="CoreCompile">
35+
BeforeTargets="BeforeCompile">
3636

3737
<WriteCodeFragment AssemblyAttributes="@(_InternalsVisibleToAttribute)" Language="$(Language)" OutputFile="$(GeneratedInternalsVisibleToFile)">
3838
<Output TaskParameter="OutputFile" ItemName="CompileBefore" Condition="'$(Language)' == 'F#'" />

src/Directory.Build.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
<!-- Common build settings -->
77
<PropertyGroup>
8-
<DebugType>embedded</DebugType>
98
<Company>Microsoft Corporation</Company>
109
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1110
<EmbedUntrackedSources>true</EmbedUntrackedSources>

src/Directory.Build.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)../, $(_DirectoryBuildTargetsFile)))/$(_DirectoryBuildTargetsFile)"
44
Condition=" '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)../, $(_DirectoryBuildTargetsFile)))' != '' " />
55

6+
<PropertyGroup Condition="'$(IsRoslynComponent)' != 'true'">
7+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
8+
<IncludeSymbols>true</IncludeSymbols>
9+
</PropertyGroup>
10+
611
<PropertyGroup>
712
<!-- FileVersionRevision is expected to be set by the CI. -->
813
<FileVersion Condition="'$(FileVersionRevision)' != ''">$(VersionPrefix).$(FileVersionRevision)</FileVersion>

0 commit comments

Comments
 (0)