-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out ServerHostHandle class into separate source file.
- Loading branch information
Showing
3 changed files
with
28 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright (c) Jorgen Thelin. All rights reserved. | ||
// Licensed with Apache 2.0 https://github.com/jthelin/ServerHost/blob/master/LICENSE | ||
|
||
using System; | ||
|
||
namespace Server.Host | ||
{ | ||
/// <summary> | ||
/// Data holder class for information related to a hosted in-process test server instance. | ||
/// </summary> | ||
/// <typeparam name="TServer">Type of the server.</typeparam> | ||
public class ServerHostHandle<TServer> | ||
{ | ||
internal ServerHostHandle() | ||
{ | ||
// Prevent the arbitrary creation of ServerHostHandle objects. | ||
} | ||
|
||
/// <summary> The name of this server. </summary> | ||
public string ServerName { get; internal set; } | ||
/// <summary> Reference to the Server instance in the hosted AppDomain. | ||
/// This should be a <c>MarshalByRefObject</c> to allow cross-domain API calls.</summary> | ||
public TServer Server { get; internal set; } | ||
/// <summary> Reference to the AppDomain this server is running in. </summary> | ||
public AppDomain AppDomain { get; internal set; } | ||
} | ||
} |