Skip to content

Commit

Permalink
Split IProcessExit into discrete interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Rogers committed Jan 14, 2014
1 parent a1fcbd0 commit d7b9ba9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 13 deletions.
13 changes: 1 addition & 12 deletions projects/ProcessSample/source/ProcessSample.Core/IProcessExit.cs
Expand Up @@ -6,18 +6,7 @@

namespace ProcessSample
{
using System;

public interface IProcessExit
public interface IProcessExit : IProcessExitEvents, IProcessExitStatus
{
event EventHandler Exited;

bool HasExited { get; }

bool EnableRaisingEvents { get; set; }

int ExitCode { get; }

DateTime ExitTime { get; }
}
}
@@ -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; }
}
}
@@ -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; }
}
}
Expand Up @@ -32,8 +32,10 @@
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup>
<Compile Include="ProcessExit.cs" />
<Compile Include="IProcessExit.cs" />
<Compile Include="IProcessExitStatus.cs" />
<Compile Include="ProcessExit.cs" />
<Compile Include="IProcessExitEvents.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ProcessExitWatcher.cs" />
</ItemGroup>
Expand Down

0 comments on commit d7b9ba9

Please sign in to comment.