-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed Stylecop comments from IpcRequest, fixed IpcServiceClient to …
…populate ParameterTypes
- Loading branch information
Paolucci, Robert
authored and
Paolucci, Robert
committed
May 14, 2019
1 parent
e0f7aa8
commit 7e15b31
Showing
2 changed files
with
13 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,23 @@ | ||
// --------------------------------------------------------------------------- | ||
// <copyright file="IpcRequest.cs" company="JKang"> | ||
// (c) All Rights Reserved. | ||
// </copyright> | ||
// --------------------------------------------------------------------------- | ||
using System; | ||
|
||
namespace JKang.IpcServiceFramework | ||
{ | ||
using System; | ||
|
||
/// <summary> | ||
/// The request packet for an IPC call | ||
/// </summary> | ||
public class IpcRequest | ||
{ | ||
/// <summary> | ||
/// Contains the generic argument fields for the IPC method to call | ||
/// </summary> | ||
private Type[] genericArguments = new Type[0]; | ||
|
||
/// <summary> | ||
/// Gets or sets the name of the IPC method to call | ||
/// </summary> | ||
public string MethodName { get; set; } = string.Empty; | ||
private Type[] _genericArguments = new Type[0]; | ||
|
||
/// <summary> | ||
/// Gets or sets the parameters of the IPC method to call | ||
/// </summary> | ||
public object[] Parameters { get; set; } = new object[0]; | ||
public string MethodName { get; set; } | ||
public object[] Parameters { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the types of parameter of the IPC method to call | ||
/// </summary> | ||
public Type[] ParameterTypes { get; set; } = new Type[0]; | ||
|
||
/// <summary> | ||
/// Gets or sets the generic arguments for the IPC method to call | ||
/// </summary> | ||
public Type[] GenericArguments | ||
{ | ||
get => this.genericArguments ?? new Type[0]; | ||
set => this.genericArguments = value; | ||
get => _genericArguments ?? new Type[0]; | ||
set => _genericArguments = value; | ||
} | ||
} | ||
} |