-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Server disposing refactoring, added tests
- Loading branch information
Showing
22 changed files
with
618 additions
and
595 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
41 changes: 41 additions & 0 deletions
41
....ProcessExplorer/dotnet/src/ProcessExplorer.Abstractions/Processes/IProcessInfoManager.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,41 @@ | ||
// Morgan Stanley makes this available to you under the Apache License, | ||
// Version 2.0 (the "License"). You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0. | ||
// | ||
// See the NOTICE file distributed with this work for additional information | ||
// regarding copyright ownership. Unless required by applicable law or agreed | ||
// to in writing, software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
// or implied. See the License for the specific language governing permissions | ||
// and limitations under the License. | ||
|
||
using ProcessExplorer.Abstractions.Handlers; | ||
|
||
namespace ProcessExplorer.Abstractions.Processes; | ||
|
||
//TODO(Lilla): Add description | ||
public interface IProcessInfoManager : IDisposable | ||
{ | ||
ReadOnlySpan<int> AddChildProcesses(int processId, string? processName); | ||
void AddProcess(int processId); | ||
bool CheckIfIsComposeProcess(int processId); | ||
void ClearProcessIds(); | ||
bool ContainsId(int processId); | ||
float GetCpuUsage(int processId, string processName); | ||
float GetMemoryUsage(int processId, string processName); | ||
int? GetParentId(int processId, string processName); | ||
ReadOnlySpan<int> GetProcessIds(); | ||
void RemoveProcessId(int processId); | ||
void SendNewProcessUpdate(int processId); | ||
void SendProcessModifiedUpdate(int processId); | ||
void SendTerminatedProcessUpdate(int processId); | ||
void SetHandlers( | ||
ProcessModifiedHandler processModifiedHandler, | ||
ProcessTerminatedHandler processTerminatedHandler, | ||
ProcessCreatedHandler processCreatedHandler, | ||
ProcessesModifiedHandler processesModifiedHandler, | ||
ProcessStatusChangedHandler processStatusChangedHandler); | ||
void SetProcessIds(int mainProcessId, ReadOnlySpan<int> processIds); | ||
void WatchProcesses(int mainProcessId); | ||
} |
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
23 changes: 0 additions & 23 deletions
23
...er/dotnet/src/ProcessExplorer.Abstractions/Subsystems/ISubsystemControllerCommunicator.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.