-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Updating RemoteRendering SDK to be based on latest API spec and make classes more mockable #18694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| # Release History | ||
|
|
||
| ## 1.0.0-beta.2 (Unreleased) | ||
| ## 1.0.0-beta.3 (Unreleased) | ||
|
|
||
| ## 1.0.0-beta.2 (2021-02-11) | ||
| - Reflect minor REST API improvements. | ||
| - Make more classes mockable. | ||
|
|
||
| ## 1.0.0-beta.1 (2021-02-10) | ||
| - Initial version of client. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.ComponentModel; | ||
| using System.Text; | ||
|
|
||
| namespace Azure.MixedReality.RemoteRendering | ||
| { | ||
| /// <summary> | ||
| /// Model factory that enables mocking for the Remote Rendering library. | ||
| /// </summary> | ||
| public static class RemoteRenderingModelFactory | ||
| { | ||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="AssetConversionOutput"/> class for mocking purposes. | ||
| /// </summary> | ||
| [EditorBrowsable(EditorBrowsableState.Never)] | ||
| public static AssetConversionOutput AssetConversionOutput(Uri outputAssetUri) | ||
| => new AssetConversionOutput(outputAssetUri.ToString()); | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="RemoteRenderingServiceError"/> class for mocking purposes. | ||
| /// </summary> | ||
| [EditorBrowsable(EditorBrowsableState.Never)] | ||
| public static RemoteRenderingServiceError RemoteRenderingServiceError(string code, string message, IReadOnlyList<RemoteRenderingServiceError> details, string target, RemoteRenderingServiceError innerError) | ||
| => new RemoteRenderingServiceError(code, message, details, target, innerError); | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="AssetConversion"/> class for mocking purposes. | ||
| /// </summary> | ||
| [EditorBrowsable(EditorBrowsableState.Never)] | ||
| public static AssetConversion AssetConversion(string conversionId, AssetConversionOptions options, AssetConversionOutput output, RemoteRenderingServiceError error, AssetConversionStatus status, DateTimeOffset createdOn) | ||
| => new AssetConversion(conversionId, options, output, error, status, createdOn); | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="RenderingSession"/> class for mocking purposes. | ||
| /// </summary> | ||
| [EditorBrowsable(EditorBrowsableState.Never)] | ||
| public static RenderingSession RenderingSession(string sessionId, int? arrInspectorPort, int? handshakePort, int? elapsedTimeMinutes, string host, int? maxLeaseTimeMinutes, RenderingServerSize size, RenderingSessionStatus status, float? teraflops, RemoteRenderingServiceError error, DateTimeOffset? createdOn) | ||
| => new RenderingSession(sessionId, arrInspectorPort, handshakePort, elapsedTimeMinutes, host, maxLeaseTimeMinutes, size, status, teraflops, error, createdOn); | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.