Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split IProcessExit into discrete interfaces
- Loading branch information
Brian Rogers
committed
Jan 14, 2014
1 parent
a1fcbd0
commit d7b9ba9
Showing
4 changed files
with
40 additions
and
13 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
17 changes: 17 additions & 0 deletions
17
projects/ProcessSample/source/ProcessSample.Core/IProcessExitEvents.cs
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,17 @@ | ||
//----------------------------------------------------------------------- | ||
// <copyright file="IProcessExitEvents.cs" company="Brian Rogers"> | ||
// Copyright (c) Brian Rogers. All rights reserved. | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
|
||
namespace ProcessSample | ||
{ | ||
using System; | ||
|
||
public interface IProcessExitEvents | ||
{ | ||
event EventHandler Exited; | ||
|
||
bool EnableRaisingEvents { get; set; } | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
projects/ProcessSample/source/ProcessSample.Core/IProcessExitStatus.cs
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,19 @@ | ||
//----------------------------------------------------------------------- | ||
// <copyright file="IProcessExitStatus.cs" company="Brian Rogers"> | ||
// Copyright (c) Brian Rogers. All rights reserved. | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
|
||
namespace ProcessSample | ||
{ | ||
using System; | ||
|
||
public interface IProcessExitStatus | ||
{ | ||
bool HasExited { get; } | ||
|
||
int ExitCode { get; } | ||
|
||
DateTime ExitTime { get; } | ||
} | ||
} |
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