Skip to content

Commit

Permalink
Removed nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Treasure committed Feb 9, 2021
1 parent b493f7a commit 2c562e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ namespace Azure.MixedReality.Authentication
public partial class MixedRealityStsClient
{
protected MixedRealityStsClient() { }
public MixedRealityStsClient(System.Guid accountId, string accountDomain, Azure.AzureKeyCredential keyCredential, Azure.MixedReality.Authentication.MixedRealityStsClientOptions? options = null) { }
public MixedRealityStsClient(System.Guid accountId, string accountDomain, Azure.Core.TokenCredential credential, Azure.MixedReality.Authentication.MixedRealityStsClientOptions? options = null) { }
public MixedRealityStsClient(System.Guid accountId, System.Uri endpoint, Azure.AzureKeyCredential keyCredential, Azure.MixedReality.Authentication.MixedRealityStsClientOptions? options = null) { }
public MixedRealityStsClient(System.Guid accountId, System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.MixedReality.Authentication.MixedRealityStsClientOptions? options = null) { }
public MixedRealityStsClient(System.Guid accountId, string accountDomain, Azure.AzureKeyCredential keyCredential, Azure.MixedReality.Authentication.MixedRealityStsClientOptions options = null) { }
public MixedRealityStsClient(System.Guid accountId, string accountDomain, Azure.Core.TokenCredential credential, Azure.MixedReality.Authentication.MixedRealityStsClientOptions options = null) { }
public MixedRealityStsClient(System.Guid accountId, System.Uri endpoint, Azure.AzureKeyCredential keyCredential, Azure.MixedReality.Authentication.MixedRealityStsClientOptions options = null) { }
public MixedRealityStsClient(System.Guid accountId, System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.MixedReality.Authentication.MixedRealityStsClientOptions options = null) { }
public System.Guid AccountId { get { throw null; } }
public System.Uri Endpoint { get { throw null; } }
public virtual Azure.Response<Azure.Core.AccessToken> GetToken(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyTitle>Microsoft Azure Mixed Reality STS Client</AssemblyTitle>
<Version>1.0.0-preview.2</Version>
Expand All @@ -7,8 +7,6 @@
<Authors>Microsoft</Authors>
<PackageProjectUrl>https://azure.microsoft.com/topic/mixed-reality/</PackageProjectUrl>
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
<Nullable>enable</Nullable>
<DefineConstants>$(DefineConstants);AZURE_NULLABLE</DefineConstants>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class MixedRealityStsClient
/// <param name="accountDomain">The Mixed Reality service account domain.</param>
/// <param name="keyCredential">The Mixed Reality service account primary or secondary key credential.</param>
/// <param name="options">The options.</param>
public MixedRealityStsClient(Guid accountId, string accountDomain, AzureKeyCredential keyCredential, MixedRealityStsClientOptions? options = null)
public MixedRealityStsClient(Guid accountId, string accountDomain, AzureKeyCredential keyCredential, MixedRealityStsClientOptions options = null)
: this(accountId, AuthenticationEndpoint.ConstructFromDomain(accountDomain), new MixedRealityAccountKeyCredential(accountId, keyCredential), options) { }

/// <summary>
Expand All @@ -47,7 +47,7 @@ public MixedRealityStsClient(Guid accountId, string accountDomain, AzureKeyCrede
/// <param name="endpoint">The Mixed Reality STS service endpoint.</param>
/// <param name="keyCredential">The Mixed Reality service account primary or secondary key credential.</param>
/// <param name="options">The options.</param>
public MixedRealityStsClient(Guid accountId, Uri endpoint, AzureKeyCredential keyCredential, MixedRealityStsClientOptions? options = null)
public MixedRealityStsClient(Guid accountId, Uri endpoint, AzureKeyCredential keyCredential, MixedRealityStsClientOptions options = null)
: this(accountId, endpoint, new MixedRealityAccountKeyCredential(accountId, keyCredential), options) { }

/// <summary>
Expand All @@ -57,7 +57,7 @@ public MixedRealityStsClient(Guid accountId, Uri endpoint, AzureKeyCredential ke
/// <param name="accountDomain">The Mixed Reality service account domain.</param>
/// <param name="credential">The credential used to access the Mixed Reality service.</param>
/// <param name="options">The options.</param>
public MixedRealityStsClient(Guid accountId, string accountDomain, TokenCredential credential, MixedRealityStsClientOptions? options = null)
public MixedRealityStsClient(Guid accountId, string accountDomain, TokenCredential credential, MixedRealityStsClientOptions options = null)
: this(accountId, AuthenticationEndpoint.ConstructFromDomain(accountDomain), credential, options) { }

/// <summary>
Expand All @@ -67,7 +67,7 @@ public MixedRealityStsClient(Guid accountId, string accountDomain, TokenCredenti
/// <param name="endpoint">The Mixed Reality STS service endpoint.</param>
/// <param name="credential">The credential used to access the Mixed Reality service.</param>
/// <param name="options">The options.</param>
public MixedRealityStsClient(Guid accountId, Uri endpoint, TokenCredential credential, MixedRealityStsClientOptions? options = null)
public MixedRealityStsClient(Guid accountId, Uri endpoint, TokenCredential credential, MixedRealityStsClientOptions options = null)
{
Argument.AssertNotDefault(ref accountId, nameof(accountId));
Argument.AssertNotNull(endpoint, nameof(endpoint));
Expand Down

0 comments on commit 2c562e0

Please sign in to comment.