Skip to content

Commit

Permalink
Simplify lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroservienti authored Dec 19, 2024
1 parent 1a80738 commit 13620fa
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ static async Task Main()
var connection = "Data Source=localhost;User Id=SYSTEM; Password=yourStrong(!)Password; Enlist=false";

persistence.SqlDialect<SqlDialect.Oracle>();
persistence.ConnectionBuilder(
() =>
{
return new OracleConnection(connection);
});
persistence.ConnectionBuilder(() => new OracleConnection(connection));

var subscriptions = persistence.SubscriptionSettings();
subscriptions.CacheFor(TimeSpan.FromMinutes(1));
Expand All @@ -40,4 +36,4 @@ static async Task Main()

await endpointInstance.Stop();
}
}
}

0 comments on commit 13620fa

Please sign in to comment.