This file contains hidden or 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
| var whileRow = new Sequence() | |
| { | |
| Activities = [ | |
| new Inline((context) => | |
| { | |
| var enumerator = context.Get<IAsyncEnumerator<string>>(csvEnumerator)!; | |
| var currentCsvRow = enumerator.Current; | |
| Console.WriteLine(currentCsvRow); | |
| }), | |
| new Inline(async (context) => { |
This file contains hidden or 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
| services.AddScoped<CommitStateHandler>(); | |
| // Add Elsa services to the container. | |
| services.AddElsa(elsa => | |
| { | |
| elsa.UseWorkflows(workflows => | |
| { | |
| workflows.CommitStateHandler = sp => sp.GetRequiredService<CommitStateHandler>(); | |
| workflows.WithWorkflowExecutionPipeline(pipeline => pipeline |
This file contains hidden or 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
| Exception has occurred: CLR/System.InvalidOperationException | |
| Exception thrown: 'System.InvalidOperationException' in System.Private.CoreLib.dll: 'Timeouts are not supported on this stream.' | |
| at System.IO.Stream.get_ReadTimeout() | |
| at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer) | |
| at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state) | |
| at System.Text.Json.Serialization.JsonConverter`1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) | |
| at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.Serialize(Utf8JsonWriter writer, T& rootValue, Object rootValueBoxed) | |
| at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.SerializeAsObject(Utf8JsonWriter writer, Object rootValue) | |
| at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.Serialize(Utf8JsonWriter wri |
This file contains hidden or 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
| var services = new ServiceCollection(); | |
| services.AddScoped<CommitStateHandler>(); | |
| services.AddElsa(elsa => | |
| { | |
| elsa.UseWorkflows(workflows => | |
| { | |
| workflows.CommitStateHandler = sp => sp.GetRequiredService<CommitStateHandler>(); |
This file contains hidden or 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
| using Azure.Storage.Blobs; | |
| using Elsa.Extensions; | |
| using Elsa.Workflows; | |
| using Elsa.Workflows.Activities; | |
| using Elsa.Workflows.Memory; | |
| using Elsa.Workflows.Models; | |
| using Sylvan.Data.Csv; | |
| namespace ElsaConsole | |
| { |
This file contains hidden or 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
| find . -iname "bin" -o -iname "obj" | xargs rm -rf |
This file contains hidden or 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
| import type { | |
| FormsStackParamList, | |
| RootStackParamList, | |
| } from '@your/app'; | |
| import type { | |
| NavigationState, | |
| ParamListBase, | |
| PartialState, | |
| Route, | |
| } from '@react-navigation/native'; |
This file contains hidden or 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
| cloc --exclude-dir=vendor,.xcodeproj,xcuserdata,build,Pods,node_modules,.gradle,dist,yarn.lock,package-lock.json . |
This file contains hidden or 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
| import React, { type PropsWithChildren } from 'react'; | |
| import { PersistQueryClientProvider } from '@tanstack/react-query-persist-client'; | |
| import { onlineManager } from '@tanstack/react-query'; | |
| import { queryClient } from './queryClient'; | |
| import { storagePersister } from './storagePersister'; | |
| export function QueryClientProvider(props: PropsWithChildren) { | |
| return ( | |
| <PersistQueryClientProvider | |
| client={queryClient} |
This file contains hidden or 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
| /** | |
| * Example usage: | |
| * | |
| * // default depth of 3: (fastest) | |
| * type keys = Paths<SomeNestedObject> // returns "property" | "nested.property" | "nested.nested.property" | |
| * | |
| * // depth of 10: (can be slow) | |
| * type keys = Paths<SomeNestedObject, 10> | |
| * | |
| * // depth of 10 with keys of type string and number: (slowest) |
NewerOlder