Skip to content

Commit

Permalink
Unify DI tips in .NET comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jancerman committed Jun 7, 2024
1 parent 1f25792 commit 8eae20d
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 42 deletions.
3 changes: 1 addition & 2 deletions net/delivery-api/delivery_api_get_element.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("<YOUR_ENVIRONMENT_ID>")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/delivery-api/delivery_api_get_item.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("<YOUR_ENVIRONMENT_ID>")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/delivery-api/delivery_api_get_items.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("<YOUR_ENVIRONMENT_ID>")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/delivery-api/delivery_api_get_languages.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("<YOUR_ENVIRONMENT_ID>")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/delivery-api/delivery_api_get_taxonomy_group.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("<YOUR_ENVIRONMENT_ID>")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/delivery-api/delivery_api_get_taxonomy_groups.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("<YOUR_ENVIRONMENT_ID>")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/delivery-api/delivery_api_get_type.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("<YOUR_ENVIRONMENT_ID>")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/delivery-api/delivery_api_get_types.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("<YOUR_ENVIRONMENT_ID>")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/get-content/getting_content_filter_items.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("8d20758c-d74c-4f59-ae04-ee928c0816b7")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/get-content/getting_content_get_items.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("8d20758c-d74c-4f59-ae04-ee928c0816b7")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/get-content/getting_content_order_items.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("8d20758c-d74c-4f59-ae04-ee928c0816b7")
.Build();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Tip: Use DI create Delivery client https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("8d20758c-d74c-4f59-ae04-ee928c0816b7")
.Build();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("8d20758c-d74c-4f59-ae04-ee928c0816b7")
.Build();
Expand Down
5 changes: 2 additions & 3 deletions net/get-localized-content/language_fallbacks_ignore.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("975bf280-fd91-488c-994c-2f04416e5ee3")
.Build();

// Gets the Spanish variant of all content items and ignores language fallbacks
// Gets content items in Spanish without following language fallbacks
IDeliveryItemListingResponse<object> response = await
client.GetItemsAsync<object>(
new LanguageParameter("es-ES"),
Expand Down
3 changes: 1 addition & 2 deletions net/preview-content/preview_content_get_article.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client for previewing content
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithOptions(builder => builder
.WithProjectId("975bf280-fd91-488c-994c-2f04416e5ee3")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("8d20758c-d74c-4f59-ae04-ee928c0816b7")
.Build();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("8d20758c-d74c-4f59-ae04-ee928c0816b7")
.Build();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithOptions(builder => builder
.WithProjectId("<YOUR_ENVIRONMENT_ID>")
Expand Down
3 changes: 1 addition & 2 deletions net/strongly-typed-models/strongly_typed_models_retrieve.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
using Kontent.Ai.Delivery;
using KontentAiModels;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("8d20758c-d74c-4f59-ae04-ee928c0816b7")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/sync-api/sync_api_initialize_sync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("<YOUR_ENVIRONMENT_ID>")
.Build();
Expand Down
3 changes: 1 addition & 2 deletions net/sync-api/sync_api_synchronize_changes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net
using Kontent.Ai.Delivery;

// Creates an instance of the delivery client
// ProTip: Use DI for this in your apps https://kontent.ai/learn/net-register-client
// Tip: Use DI to create Delivery client https://kontent.ai/learn/net-register-client
IDeliveryClient client = DeliveryClientBuilder
.WithProjectId("<YOUR_ENVIRONMENT_ID>")
.Build();
Expand Down

0 comments on commit 8eae20d

Please sign in to comment.