logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class FakeAtomicFileWriterService

    No-op IAtomicFileWriterService implementation for testing.

    Inheritance
    object
    FakeAtomicFileWriterService
    Implements
    IFileWriterService
    IService
    IFoundationSettings
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Tests.Shared.Fakes
    Assembly: Tests.dll
    Syntax
    public class FakeAtomicFileWriterService : IFileWriterService, IService, IFoundationSettings

    Constructors

    FakeAtomicFileWriterService()

    Declaration
    public FakeAtomicFileWriterService()

    Properties

    Guid

    Declaration
    public string Guid { get; set; }
    Property Value
    Type Description
    string

    Id

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    string

    LogService

    Declaration
    public ILogService LogService { get; set; }
    Property Value
    Type Description
    ILogService

    Methods

    Write(string, ReadOnlySpan<byte>)

    Declaration
    public void Write(string path, ReadOnlySpan<byte> data)
    Parameters
    Type Name Description
    string path
    ReadOnlySpan<byte> data

    WriteAsync(string, ReadOnlyMemory<byte>, CancellationToken)

    Declaration
    public Task WriteAsync(string path, ReadOnlyMemory<byte> data, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string path
    ReadOnlyMemory<byte> data
    CancellationToken cancellationToken
    Returns
    Type Description
    Task

    Implements

    IFileWriterService
    IService
    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved