Skip to content

Commit

Permalink
Update sign task, snupkg symbols, readme.md (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
jviau authored Nov 19, 2022
1 parent b35c9cf commit 33bbe4b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ public static class HelloCitiesTypedStarter
}

[DurableTask(nameof(HelloCitiesTyped))]
public class HelloCitiesTyped : TaskOrchestratorBase<string, string>
public class HelloCitiesTyped : TaskOrchestrator<string?, string>
{
protected async override Task<string?> OnRunAsync(TaskOrchestrationContext context, string? input)
public async override Task<string> RunAsync(TaskOrchestrationContext context, string? input)
{
string result = "";
result += await context.CallSayHelloTypedAsync("Tokyo") + " ";
Expand All @@ -127,7 +127,7 @@ public class HelloCitiesTyped : TaskOrchestratorBase<string, string>
}

[DurableTask(nameof(SayHelloTyped))]
public class SayHelloTyped : TaskActivityBase<string, string>
public class SayHelloTyped : TaskActivity<string, string>
{
readonly ILogger? logger;

Expand All @@ -136,10 +136,10 @@ public class SayHelloTyped : TaskActivityBase<string, string>
this.logger = loggerFactory?.CreateLogger<SayHelloTyped>();
}

protected override string OnRun(TaskActivityContext context, string? cityName)
public override Task<string> RunAsync(TaskActivityContext context, string cityName)
{
this.logger?.LogInformation("Saying hello to {name}", cityName);
return $"Hello, {cityName}!";
return Task.FromResult($"Hello, {cityName}!");
}
}
```
Expand All @@ -155,9 +155,6 @@ There are also several features that aren't yet available:
* Durable Entities is not yet supported.
* APIs for calling HTTP endpoints are not yet available.
* Several instance management APIs are not yet implemented.
* Some orchestration context properties, like the parent instance ID, are not yet available.

Feature parity with Durable Functions can be expected in the 1.0 release.

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ steps:
displayName: 'ESRP CodeSigning: Authenticode'
inputs:
ConnectedServiceName: 'ESRP Service'
FolderPath: 'src'
FolderPath: 'out/bin'
Pattern: 'Microsoft.DurableTask.*.dll'
signConfigType: inlineSignParams
inlineOperation: |
Expand Down
2 changes: 1 addition & 1 deletion eng/targets/InternalsVisibleTo.targets
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
Outputs="$(GeneratedInternalsVisibleToFile)"
DependsOnTargets="PrepareGenerateInternalsVisibleToFile;PrepareForBuild"
Condition="'@(InternalsVisibleTo)' != ''"
BeforeTargets="CoreCompile">
BeforeTargets="BeforeCompile">

<WriteCodeFragment AssemblyAttributes="@(_InternalsVisibleToAttribute)" Language="$(Language)" OutputFile="$(GeneratedInternalsVisibleToFile)">
<Output TaskParameter="OutputFile" ItemName="CompileBefore" Condition="'$(Language)' == 'F#'" />
Expand Down
1 change: 0 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

<!-- Common build settings -->
<PropertyGroup>
<DebugType>embedded</DebugType>
<Company>Microsoft Corporation</Company>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand Down
5 changes: 5 additions & 0 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)../, $(_DirectoryBuildTargetsFile)))/$(_DirectoryBuildTargetsFile)"
Condition=" '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)../, $(_DirectoryBuildTargetsFile)))' != '' " />

<PropertyGroup Condition="'$(IsRoslynComponent)' != 'true'">
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<IncludeSymbols>true</IncludeSymbols>
</PropertyGroup>

<PropertyGroup>
<!-- FileVersionRevision is expected to be set by the CI. -->
<FileVersion Condition="'$(FileVersionRevision)' != ''">$(VersionPrefix).$(FileVersionRevision)</FileVersion>
Expand Down

0 comments on commit 33bbe4b

Please sign in to comment.