Skip to content

Make ComputeChecksum a static method #550

@ziagham

Description

@ziagham

What version of FlowSynx?

1.2.1

Describe the bug

The method ComputeChecksum is currently an instance method:

File: src/FlowSynx.Infrastructure/PluginHost/Manager/PluginDownloader.cs line 105

private string ComputeChecksum(byte[] data)

Since this method does not depend on any instance state and only operates on its input parameter, it should be made static.

Proposed Change:

private static string ComputeChecksum(byte[] data)

This change will:

  • Clarify that ComputeChecksum does not rely on instance state.
  • Potentially improve performance slightly by avoiding the need for an instance reference.
  • Make it easier to call from other static contexts if you need to.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions