Skip to content

Commit 4d26e2f

Browse files
style format
1 parent c02a992 commit 4d26e2f

File tree

124 files changed

+970
-306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+970
-306
lines changed

examples/BlazorServerApp/BrowserFilter.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using Microsoft.FeatureManagement;
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved.
2+
// Licensed under the MIT license.
3+
4+
using Microsoft.FeatureManagement;
25

36
namespace BlazorServerApp
47
{

examples/BlazorServerApp/BrowserFilterSettings.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
namespace BlazorServerApp
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved.
2+
// Licensed under the MIT license.
3+
4+
namespace BlazorServerApp
25
{
36
public class BrowserFilterSettings
47
{

examples/BlazorServerApp/Data/WeatherForecast.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved.
2+
// Licensed under the MIT license.
3+
14
namespace BlazorServerApp.Data
25
{
36
public class WeatherForecast

examples/BlazorServerApp/Data/WeatherForecastService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved.
2+
// Licensed under the MIT license.
3+
14
namespace BlazorServerApp.Data
25
{
36
public class WeatherForecastService

examples/BlazorServerApp/MyTargetingContextAccessor.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using Microsoft.AspNetCore.Components.Authorization;
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved.
2+
// Licensed under the MIT license.
3+
4+
using Microsoft.AspNetCore.Components.Authorization;
25
using Microsoft.FeatureManagement.FeatureFilters;
36

47
namespace BlazorServerApp

examples/BlazorServerApp/Pages/Error.cshtml.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
using Microsoft.AspNetCore.Mvc;
2-
using Microsoft.AspNetCore.Mvc.RazorPages;
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved.
2+
// Licensed under the MIT license.
3+
34
using System.Diagnostics;
5+
using Microsoft.AspNetCore.Mvc;
6+
using Microsoft.AspNetCore.Mvc.RazorPages;
47

58
namespace BlazorServerApp.Pages
69
{

examples/BlazorServerApp/Program.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved.
2+
// Licensed under the MIT license.
3+
14
using BlazorServerApp.Data;
25
using Microsoft.AspNetCore.Authentication.Cookies;
36
using Microsoft.FeatureManagement;
@@ -8,7 +11,7 @@ public class Program
811
{
912
public static void Main(string[] args)
1013
{
11-
var builder = WebApplication.CreateBuilder(args);
14+
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
1215

1316
builder.Services.AddRazorPages();
1417
builder.Services.AddServerSideBlazor();
@@ -26,7 +29,7 @@ public static void Main(string[] args)
2629
.WithTargeting<MyTargetingContextAccessor>()
2730
.AddFeatureFilter<BrowserFilter>();
2831

29-
var app = builder.Build();
32+
WebApplication app = builder.Build();
3033

3134
if (!app.Environment.IsDevelopment())
3235
{

examples/BlazorServerApp/UserAgentContext.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
namespace BlazorServerApp
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved.
2+
// Licensed under the MIT license.
3+
4+
namespace BlazorServerApp
25
{
36
public class UserAgentContext
47
{

examples/ConsoleApp/AccountServiceContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Copyright (c) Microsoft Corporation.
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved.
22
// Licensed under the MIT license.
3-
//
3+
44
class AccountServiceContext : IAccountContext
55
{
66
public string AccountId { get; set; }

examples/ConsoleApp/FeatureFilters/AccountIdFilter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Copyright (c) Microsoft Corporation.
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved.
22
// Licensed under the MIT license.
3-
//
3+
44
using Microsoft.Extensions.Configuration;
55
using Microsoft.FeatureManagement;
66

0 commit comments

Comments
 (0)