Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace GodotTools.IdeMessaging
{
public interface IHandshake
{
string GetHandshakeLine(string identity);
bool IsValidPeerHandshake(string handshake, [NotNullWhen(true)] out string? identity, ILogger logger);
public string GetHandshakeLine(string identity);
public bool IsValidPeerHandshake(string handshake, [NotNullWhen(true)] out string? identity, ILogger logger);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ namespace GodotTools.IdeMessaging
{
public interface ILogger
{
void LogDebug(string message);
void LogInfo(string message);
void LogWarning(string message);
void LogError(string message);
void LogError(string message, Exception e);
public void LogDebug(string message);
public void LogInfo(string message);
public void LogWarning(string message);
public void LogError(string message);
public void LogError(string message, Exception e);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ namespace GodotTools.IdeMessaging
{
public interface IMessageHandler
{
Task<MessageContent> HandleRequest(Peer peer, string id, MessageContent content, ILogger logger);
public Task<MessageContent> HandleRequest(Peer peer, string id, MessageContent content, ILogger logger);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,13 @@ int IOleMessageFilter.MessagePending(IntPtr hTaskCallee, int dwTickCount, int dw
private interface IOleMessageFilter
{
[PreserveSig]
int HandleInComingCall(int dwCallType, IntPtr hTaskCaller, int dwTickCount, IntPtr lpInterfaceInfo);
public int HandleInComingCall(int dwCallType, IntPtr hTaskCaller, int dwTickCount, IntPtr lpInterfaceInfo);

[PreserveSig]
int RetryRejectedCall(IntPtr hTaskCallee, int dwTickCount, int dwRejectType);
public int RetryRejectedCall(IntPtr hTaskCallee, int dwTickCount, int dwRejectType);

[PreserveSig]
int MessagePending(IntPtr hTaskCallee, int dwTickCount, int dwPendingType);
public int MessagePending(IntPtr hTaskCallee, int dwTickCount, int dwPendingType);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ namespace Godot
/// </summary>
public interface IAwaitable
{
IAwaiter GetAwaiter();
/// <summary>
/// Gets an Awaiter for this <see cref="IAwaitable"/>.
/// </summary>
/// <returns>An Awaiter.</returns>
public IAwaiter GetAwaiter();
}

/// <summary>
Expand All @@ -14,6 +18,10 @@ public interface IAwaitable
/// <typeparam name="TResult">A reference to the result to be passed out.</typeparam>
public interface IAwaitable<out TResult>
{
IAwaiter<TResult> GetAwaiter();
/// <summary>
/// Gets an Awaiter for this <see cref="IAwaitable{TResult}"/>.
/// </summary>
/// <returns>An Awaiter.</returns>
public IAwaiter<TResult> GetAwaiter();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ namespace Godot
/// </summary>
public interface IAwaiter : INotifyCompletion
{
bool IsCompleted { get; }
/// <summary>
/// The completion status of this <see cref="IAwaiter"/>.
/// </summary>
public bool IsCompleted { get; }

void GetResult();
/// <summary>
/// Gets the result of completion for this <see cref="IAwaiter"/>.
/// </summary>
public void GetResult();
}

/// <summary>
Expand All @@ -18,8 +24,14 @@ public interface IAwaiter : INotifyCompletion
/// <typeparam name="TResult">A reference to the result to be passed out.</typeparam>
public interface IAwaiter<out TResult> : INotifyCompletion
{
bool IsCompleted { get; }
/// <summary>
/// The completion status of this <see cref="IAwaiter{TResult}"/>.
/// </summary>
public bool IsCompleted { get; }

TResult GetResult();
/// <summary>
/// Gets the result of completion for this <see cref="IAwaiter{TResult}"/>.
/// </summary>
public TResult GetResult();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ public interface ISerializationListener
/// Executed before serializing this instance's state when reloading assemblies.
/// Clear any data that should not be serialized.
/// </summary>
void OnBeforeSerialize();
public void OnBeforeSerialize();

/// <summary>
/// Executed after deserializing this instance's state after reloading assemblies.
/// Restore any state that has been lost.
/// </summary>
void OnAfterDeserialize();
public void OnAfterDeserialize();
}
}
Loading