mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 14:51:41 +01:00
nullability step 2
This commit is contained in:
parent
3c9c98bc2b
commit
5b8f6722ec
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp
|
||||||
namespace Capnp
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generic <see cref="ICapnpSerializable"/> implementation, based on a wrapper around <see cref="DeserializerState"/>.
|
/// Generic <see cref="ICapnpSerializable"/> implementation, based on a wrapper around <see cref="DeserializerState"/>.
|
||||||
@ -29,5 +28,4 @@ namespace Capnp
|
|||||||
Reserializing.DeepCopy(State, state);
|
Reserializing.DeepCopy(State, state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -4,6 +4,8 @@
|
|||||||
<TargetFrameworks>netstandard2.0;netcoreapp2.1;netcoreapp3.0</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;netcoreapp2.1;netcoreapp3.0</TargetFrameworks>
|
||||||
<RootNamespace>Capnp</RootNamespace>
|
<RootNamespace>Capnp</RootNamespace>
|
||||||
<LangVersion>8.0</LangVersion>
|
<LangVersion>8.0</LangVersion>
|
||||||
|
<Nullable>Enable</Nullable>
|
||||||
|
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
|
||||||
<AssemblyName>Capnp.Net.Runtime</AssemblyName>
|
<AssemblyName>Capnp.Net.Runtime</AssemblyName>
|
||||||
<PackageId>Capnp.Net.Runtime</PackageId>
|
<PackageId>Capnp.Net.Runtime</PackageId>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -171,5 +170,4 @@ namespace Capnp
|
|||||||
return (T?)GetSerializer(typeof(T))(state);
|
return (T?)GetSerializer(typeof(T))(state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -23,5 +22,4 @@ namespace Capnp
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,8 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -695,8 +693,7 @@ namespace Capnp
|
|||||||
if (Caps == null)
|
if (Caps == null)
|
||||||
throw new InvalidOperationException("Capability table not set. This is a bug.");
|
throw new InvalidOperationException("Capability table not set. This is a bug.");
|
||||||
|
|
||||||
return Rpc.CapabilityReflection.CreateProxy<T>(Caps[(int)CapabilityIndex]) as T;
|
return (Rpc.CapabilityReflection.CreateProxy<T>(Caps[(int)CapabilityIndex]) as T)!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -226,5 +225,4 @@ namespace Capnp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -3,7 +3,6 @@ using System.Collections;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -36,5 +35,4 @@ namespace Capnp
|
|||||||
return GetEnumerator();
|
return GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -86,5 +85,4 @@ namespace Capnp
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public override IReadOnlyList<ushort> CastUShort() => new EmptyList<ushort>();
|
public override IReadOnlyList<ushort> CastUShort() => new EmptyList<ushort>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,14 +2,11 @@
|
|||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net.Sockets;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -196,5 +193,4 @@ namespace Capnp
|
|||||||
_tracers.Add(tracer);
|
_tracers.Add(tracer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.FrameTracing
|
namespace Capnp.FrameTracing
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -32,4 +31,3 @@ namespace Capnp.FrameTracing
|
|||||||
void TraceFrame(FrameDirection direction, WireFrame frame);
|
void TraceFrame(FrameDirection direction, WireFrame frame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -6,7 +6,6 @@ using System.IO;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.FrameTracing
|
namespace Capnp.FrameTracing
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -245,5 +244,4 @@ namespace Capnp.FrameTracing
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -3,7 +3,6 @@ using System.IO;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -107,5 +106,4 @@ namespace Capnp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp
|
||||||
namespace Capnp
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This interface is intended to be implemented by schema-generated domain classes which support deserialization from
|
/// This interface is intended to be implemented by schema-generated domain classes which support deserialization from
|
||||||
@ -19,5 +18,4 @@ namespace Capnp
|
|||||||
/// <param name="state">Source deserializer state</param>
|
/// <param name="state">Source deserializer state</param>
|
||||||
void Deserialize(DeserializerState state);
|
void Deserialize(DeserializerState state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -27,5 +26,4 @@ namespace Capnp
|
|||||||
/// <returns>Whether allocation was successful</returns>
|
/// <returns>Whether allocation was successful</returns>
|
||||||
bool Allocate(uint nwords, uint preferredSegment, out SegmentSlice slice, bool forcePreferredSegment);
|
bool Allocate(uint nwords, uint preferredSegment, out SegmentSlice slice, bool forcePreferredSegment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -20,5 +19,4 @@ namespace Capnp
|
|||||||
/// <exception cref="DeserializationException">this state does not represent a struct</exception>
|
/// <exception cref="DeserializationException">this state does not represent a struct</exception>
|
||||||
ulong StructReadData(ulong bitOffset, int bitCount);
|
ulong StructReadData(ulong bitOffset, int bitCount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -25,5 +24,4 @@ namespace Capnp
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
Span<ulong> StructDataSection { get; }
|
Span<ulong> StructDataSection { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -401,5 +400,4 @@ namespace Capnp
|
|||||||
return Cast(sd => sd.ReadDataDouble(0));
|
return Cast(sd => sd.ReadDataDouble(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp
|
||||||
namespace Capnp
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enumerates the list element categories which are defined by Cap'n Proto.
|
/// Enumerates the list element categories which are defined by Cap'n Proto.
|
||||||
@ -46,5 +45,4 @@ namespace Capnp
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
ListOfStructs = 7
|
ListOfStructs = 7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,7 +2,6 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -77,5 +76,4 @@ namespace Capnp
|
|||||||
throw new NotSupportedException("Cannot cast a list of bits to anything else");
|
throw new NotSupportedException("Cannot cast a list of bits to anything else");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -3,7 +3,6 @@ using System.Collections;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -96,5 +95,4 @@ namespace Capnp
|
|||||||
|
|
||||||
IEnumerator IEnumerable.GetEnumerator() => this.ToArray().GetEnumerator();
|
IEnumerator IEnumerable.GetEnumerator() => this.ToArray().GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,9 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -70,5 +68,4 @@ namespace Capnp
|
|||||||
return GetEnumerator();
|
return GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,7 +2,6 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -108,5 +107,4 @@ namespace Capnp
|
|||||||
return GetEnumerator();
|
return GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -3,7 +3,6 @@ using System.Collections;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -64,5 +63,4 @@ namespace Capnp
|
|||||||
return GetEnumerator();
|
return GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -31,5 +30,4 @@ namespace Capnp
|
|||||||
SetListOfValues(0, count);
|
SetListOfValues(0, count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,7 +2,6 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -89,5 +88,4 @@ namespace Capnp
|
|||||||
return this.LazyListSelect(d => d.RequireCapList<T>());
|
return this.LazyListSelect(d => d.RequireCapList<T>());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,10 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -115,5 +112,4 @@ namespace Capnp
|
|||||||
return GetEnumerator();
|
return GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable enable
|
|
@ -4,7 +4,6 @@ using System.Collections.Generic;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -232,5 +231,4 @@ namespace Capnp
|
|||||||
return GetEnumerator();
|
return GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,9 +2,7 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -94,5 +92,4 @@ namespace Capnp
|
|||||||
|
|
||||||
IEnumerator IEnumerable.GetEnumerator() => Data.ToArray().GetEnumerator();
|
IEnumerator IEnumerable.GetEnumerator() => Data.ToArray().GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,9 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -79,5 +77,4 @@ namespace Capnp
|
|||||||
return GetEnumerator();
|
return GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -3,7 +3,6 @@ using System.Collections;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -93,5 +92,4 @@ namespace Capnp
|
|||||||
return GetEnumerator();
|
return GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,7 +2,6 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -109,6 +108,4 @@ namespace Capnp
|
|||||||
return GetEnumerator();
|
return GetEnumerator();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#nullable restore
|
|
@ -1,7 +1,5 @@
|
|||||||
using System;
|
using Microsoft.Extensions.Logging;
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -21,5 +19,4 @@ namespace Capnp
|
|||||||
/// <returns>The logger instance</returns>
|
/// <returns>The logger instance</returns>
|
||||||
public static ILogger CreateLogger<T>() => LoggerFactory.CreateLogger<T>();
|
public static ILogger CreateLogger<T>() => LoggerFactory.CreateLogger<T>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,9 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -101,5 +98,4 @@ namespace Capnp
|
|||||||
public ISegmentAllocator Allocator => _allocator;
|
public ISegmentAllocator Allocator => _allocator;
|
||||||
internal List<Rpc.ConsumedCapability?>? Caps => _capTable;
|
internal List<Rpc.ConsumedCapability?>? Caps => _capTable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -71,5 +70,4 @@ namespace Capnp
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
Value = 16
|
Value = 16
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,8 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
class PrimitiveCoder
|
class PrimitiveCoder
|
||||||
@ -45,5 +42,4 @@ namespace Capnp
|
|||||||
throw new NotSupportedException("Generic type argument is not a supported primitive type, no coder defined");
|
throw new NotSupportedException("Generic type argument is not a supported primitive type, no coder defined");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,9 +2,7 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -71,5 +69,4 @@ namespace Capnp
|
|||||||
return source.Select(selector).ToList().AsReadOnly();
|
return source.Select(selector).ToList().AsReadOnly();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,8 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -103,5 +101,4 @@ namespace Capnp
|
|||||||
to.InheritFrom(ds);
|
to.InheritFrom(ds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp.Rpc
|
||||||
namespace Capnp.Rpc
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Helper struct to support tail calls
|
/// Helper struct to support tail calls
|
||||||
@ -41,5 +40,4 @@ namespace Capnp.Rpc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public PendingQuestion? Counterquestion => _obj as PendingQuestion;
|
public PendingQuestion? Counterquestion => _obj as PendingQuestion;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp.Rpc
|
||||||
namespace Capnp.Rpc
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generic Proxy implementation which exposes the (usually protected) Call method.
|
/// Generic Proxy implementation which exposes the (usually protected) Call method.
|
||||||
@ -50,5 +49,4 @@ namespace Capnp.Rpc
|
|||||||
return base.Call(interfaceId, methodId, args, default);
|
return base.Call(interfaceId, methodId, args, default);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,9 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -286,5 +284,4 @@ namespace Capnp.Rpc
|
|||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp.Rpc
|
||||||
namespace Capnp.Rpc
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// State of an RPC connection
|
/// State of an RPC connection
|
||||||
@ -22,5 +21,4 @@ namespace Capnp.Rpc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
Down
|
Down
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,9 +1,4 @@
|
|||||||
using System;
|
namespace Capnp.Rpc
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Base class for a low-level capability at consumer side. It is created by the <see cref="RpcEngine"/>. An application does not directly interact with it
|
/// Base class for a low-level capability at consumer side. It is created by the <see cref="RpcEngine"/>. An application does not directly interact with it
|
||||||
@ -31,5 +26,4 @@ namespace Capnp.Rpc
|
|||||||
public int CreatorLineNumber { get; set; }
|
public int CreatorLineNumber { get; set; }
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,7 +1,6 @@
|
|||||||
using Capnp.FrameTracing;
|
using Capnp.FrameTracing;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -58,5 +57,4 @@ namespace Capnp.Rpc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
void Close();
|
void Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp.Rpc
|
||||||
namespace Capnp.Rpc
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A uni-directional endpoint, used in conjunction with the <see cref="RpcEngine"/>.
|
/// A uni-directional endpoint, used in conjunction with the <see cref="RpcEngine"/>.
|
||||||
@ -16,5 +15,4 @@ namespace Capnp.Rpc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
void Dismiss();
|
void Dismiss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp.Rpc
|
||||||
namespace Capnp.Rpc
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A mono skeleton (as opposed to <see cref="PolySkeleton"/>) is a skeleton which implements one particular RPC interface.
|
/// A mono skeleton (as opposed to <see cref="PolySkeleton"/>) is a skeleton which implements one particular RPC interface.
|
||||||
@ -11,5 +10,4 @@ namespace Capnp.Rpc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
ulong InterfaceId { get; }
|
ulong InterfaceId { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -25,5 +24,4 @@ namespace Capnp.Rpc
|
|||||||
/// <returns>Pipelined low-level capability</returns>
|
/// <returns>Pipelined low-level capability</returns>
|
||||||
ConsumedCapability? Access(MemberAccessPath access);
|
ConsumedCapability? Access(MemberAccessPath access);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,7 +2,6 @@
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -22,5 +21,4 @@ namespace Capnp.Rpc
|
|||||||
Task<AnswerOrCounterquestion> Invoke(ulong interfaceId, ushort methodId,
|
Task<AnswerOrCounterquestion> Invoke(ulong interfaceId, ushort methodId,
|
||||||
DeserializerState args, CancellationToken cancellationToken = default);
|
DeserializerState args, CancellationToken cancellationToken = default);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,6 +1,5 @@
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -13,5 +12,4 @@ namespace Capnp.Rpc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
Task<Proxy> WhenResolved { get; }
|
Task<Proxy> WhenResolved { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,9 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
internal interface IRpcEndpoint
|
internal interface IRpcEndpoint
|
||||||
@ -19,5 +16,4 @@ namespace Capnp.Rpc
|
|||||||
Task RequestSenderLoopback(Action<MessageTarget.WRITER> writer);
|
Task RequestSenderLoopback(Action<MessageTarget.WRITER> writer);
|
||||||
void DeleteQuestion(PendingQuestion question);
|
void DeleteQuestion(PendingQuestion question);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -3,7 +3,6 @@ using System.Runtime.CompilerServices;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -252,5 +251,4 @@ namespace Capnp.Rpc
|
|||||||
return MaybeTailCall(task, (ValueTuple<T1, T2, T3, T4, T5, T6, T7> t) => func(t.Item1, t.Item2, t.Item3, t.Item4, t.Item5, t.Item6, t.Item7));
|
return MaybeTailCall(task, (ValueTuple<T1, T2, T3, T4, T5, T6, T7> t) => func(t.Item1, t.Item2, t.Item3, t.Item4, t.Item5, t.Item6, t.Item7));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,7 +1,4 @@
|
|||||||
using System.Threading.Tasks;
|
namespace Capnp.Rpc
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Low-level capability which as imported from a remote peer.
|
/// Low-level capability which as imported from a remote peer.
|
||||||
@ -52,5 +49,4 @@ namespace Capnp.Rpc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,11 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc.Interception
|
namespace Capnp.Rpc.Interception
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -357,4 +353,3 @@ namespace Capnp.Rpc.Interception
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp.Rpc.Interception
|
||||||
namespace Capnp.Rpc.Interception
|
|
||||||
{
|
{
|
||||||
class CensorCapability : RefCountingCapability
|
class CensorCapability : RefCountingCapability
|
||||||
{
|
{
|
||||||
@ -42,5 +41,4 @@ namespace Capnp.Rpc.Interception
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc.Interception
|
namespace Capnp.Rpc.Interception
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -21,5 +20,4 @@ namespace Capnp.Rpc.Interception
|
|||||||
/// <param name="callContext"></param>
|
/// <param name="callContext"></param>
|
||||||
void OnReturnFromBob(CallContext callContext);
|
void OnReturnFromBob(CallContext callContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp.Rpc.Interception
|
||||||
namespace Capnp.Rpc.Interception
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The state of an intercepted call from Alice to Bob.
|
/// The state of an intercepted call from Alice to Bob.
|
||||||
@ -26,5 +25,4 @@ namespace Capnp.Rpc.Interception
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
ReturnedToAlice
|
ReturnedToAlice
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,7 +2,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc.Interception
|
namespace Capnp.Rpc.Interception
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -113,5 +112,4 @@ namespace Capnp.Rpc.Interception
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp.Rpc
|
||||||
namespace Capnp.Rpc
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Will be thrown if a type did not qualify as capability interface.
|
/// Will be thrown if a type did not qualify as capability interface.
|
||||||
@ -22,5 +21,4 @@ namespace Capnp.Rpc
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,7 +2,6 @@
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
class LazyCapability : RefCountingCapability, IResolvingCapability
|
class LazyCapability : RefCountingCapability, IResolvingCapability
|
||||||
@ -106,5 +105,4 @@ namespace Capnp.Rpc
|
|||||||
return new LocalAnswer(cts, CallImpl(interfaceId, methodId, args, cts.Token));
|
return new LocalAnswer(cts, CallImpl(interfaceId, methodId, args, cts.Token));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,7 +2,6 @@
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
class LocalAnswer : IPromisedAnswer
|
class LocalAnswer : IPromisedAnswer
|
||||||
@ -50,5 +49,4 @@ namespace Capnp.Rpc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,7 +2,6 @@
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
class LocalAnswerCapability : RefCountingCapability, IResolvingCapability
|
class LocalAnswerCapability : RefCountingCapability, IResolvingCapability
|
||||||
@ -87,5 +86,4 @@ namespace Capnp.Rpc
|
|||||||
this.DisposeWhenResolved();
|
this.DisposeWhenResolved();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,10 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
class LocalCapability : ConsumedCapability
|
class LocalCapability : ConsumedCapability
|
||||||
@ -69,5 +67,4 @@ namespace Capnp.Rpc
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -2,7 +2,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -192,5 +191,4 @@ namespace Capnp.Rpc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,9 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
class PendingAnswer: IDisposable
|
class PendingAnswer: IDisposable
|
||||||
@ -199,5 +197,4 @@ namespace Capnp.Rpc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,10 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -378,5 +375,4 @@ namespace Capnp.Rpc
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -71,5 +70,4 @@ namespace Capnp.Rpc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,9 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
class PromisedCapability : RemoteResolvingCapability
|
class PromisedCapability : RemoteResolvingCapability
|
||||||
@ -258,5 +256,4 @@ namespace Capnp.Rpc
|
|||||||
return call;
|
return call;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,9 +1,7 @@
|
|||||||
using Microsoft.Extensions.Logging;
|
using System;
|
||||||
using System;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -239,5 +237,4 @@ namespace Capnp.Rpc
|
|||||||
public int CreatorLineNumber { get; set; }
|
public int CreatorLineNumber { get; set; }
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,8 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -28,5 +25,4 @@ namespace Capnp.Rpc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Type ProxyClass { get; }
|
public Type ProxyClass { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,8 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
abstract class RefCountingCapability: ConsumedCapability
|
abstract class RefCountingCapability: ConsumedCapability
|
||||||
@ -112,5 +110,4 @@ namespace Capnp.Rpc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,9 +1,6 @@
|
|||||||
using Microsoft.Extensions.Logging;
|
using System;
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
class RemoteAnswerCapability : RemoteResolvingCapability
|
class RemoteAnswerCapability : RemoteResolvingCapability
|
||||||
@ -259,5 +256,4 @@ namespace Capnp.Rpc
|
|||||||
this.DisposeWhenResolved();
|
this.DisposeWhenResolved();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,9 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -41,5 +38,4 @@ namespace Capnp.Rpc
|
|||||||
return call;
|
return call;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -3,7 +3,6 @@ using System;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
abstract class RemoteResolvingCapability : RemoteCapability, IResolvingCapability
|
abstract class RemoteResolvingCapability : RemoteCapability, IResolvingCapability
|
||||||
@ -127,5 +126,4 @@ namespace Capnp.Rpc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp.Rpc
|
||||||
namespace Capnp.Rpc
|
|
||||||
{
|
{
|
||||||
static class ResolvingCapabilityExtensions
|
static class ResolvingCapabilityExtensions
|
||||||
{
|
{
|
||||||
@ -42,5 +41,4 @@ namespace Capnp.Rpc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -4,13 +4,9 @@ using System.Collections.Concurrent;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1508,5 +1504,4 @@ namespace Capnp.Rpc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp.Rpc
|
||||||
namespace Capnp.Rpc
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Thrown when an RPC-related error condition occurs.
|
/// Thrown when an RPC-related error condition occurs.
|
||||||
@ -20,5 +19,4 @@ namespace Capnp.Rpc
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,8 +1,6 @@
|
|||||||
#nullable enable
|
namespace Capnp.Rpc
|
||||||
namespace Capnp.Rpc
|
|
||||||
{
|
{
|
||||||
class RpcUnimplementedException : System.Exception
|
class RpcUnimplementedException : System.Exception
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,12 +1,8 @@
|
|||||||
using Microsoft.Extensions.Logging;
|
using System;
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -299,5 +295,4 @@ namespace Capnp.Rpc
|
|||||||
Impl = (T)impl;
|
Impl = (T)impl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -32,5 +31,4 @@ namespace Capnp.Rpc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Type SkeletonClass { get; }
|
public Type SkeletonClass { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,16 +1,11 @@
|
|||||||
using Capnp.FrameTracing;
|
using Capnp.FrameTracing;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -268,5 +263,4 @@ namespace Capnp.Rpc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsWaitingForData => _pump?.IsWaitingForData ?? false;
|
public bool IsWaitingForData => _pump?.IsWaitingForData ?? false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -6,7 +6,6 @@ using System.Net;
|
|||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -321,5 +320,4 @@ namespace Capnp.Rpc
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public event Action<object, ConnectionEventArgs>? OnConnectionChanged;
|
public event Action<object, ConnectionEventArgs>? OnConnectionChanged;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,10 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp.Rpc
|
namespace Capnp.Rpc
|
||||||
{
|
{
|
||||||
class Vine : Skeleton
|
class Vine : Skeleton
|
||||||
@ -70,5 +67,4 @@ namespace Capnp.Rpc
|
|||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,4 +1,5 @@
|
|||||||
#pragma warning disable CS1591
|
#pragma warning disable CS1591
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
using Capnp;
|
using Capnp;
|
||||||
using Capnp.Rpc;
|
using Capnp.Rpc;
|
||||||
@ -2640,4 +2641,6 @@ namespace Capnp.Rpc
|
|||||||
unimplemented
|
unimplemented
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#nullable restore
|
@ -1,5 +1,4 @@
|
|||||||
#nullable enable
|
namespace Capnp
|
||||||
namespace Capnp
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides the security bounds for defeating amplification and stack overflow DoS attacks.
|
/// Provides the security bounds for defeating amplification and stack overflow DoS attacks.
|
||||||
@ -16,5 +15,4 @@ namespace Capnp
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static int RecursionLimit { get; set; } = 64;
|
public static int RecursionLimit { get; set; } = 64;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,8 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -145,5 +143,4 @@ namespace Capnp
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,7 +1,4 @@
|
|||||||
using System;
|
namespace Capnp
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Helper struct to represent the tuple (segment index, offset)
|
/// Helper struct to represent the tuple (segment index, offset)
|
||||||
@ -18,5 +15,4 @@ namespace Capnp
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int Offset;
|
public int Offset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -339,5 +338,4 @@ namespace Capnp
|
|||||||
WriteData(d, bitOffset, bits, defaultBits);
|
WriteData(d, bitOffset, bits, defaultBits);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,10 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1406,5 +1404,4 @@ namespace Capnp
|
|||||||
return new Rpc.BareProxy(cap);
|
return new Rpc.BareProxy(cap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -25,5 +24,4 @@ namespace Capnp
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public ulong Id { get; }
|
public ulong Id { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -4,7 +4,6 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
#nullable enable
|
|
||||||
internal static class UtilityExtensions
|
internal static class UtilityExtensions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -79,5 +78,4 @@ namespace Capnp
|
|||||||
public static float ReplacementInt32ToSingleBits(this int value) => BitConverter.Int32BitsToSingle(value);
|
public static float ReplacementInt32ToSingleBits(this int value) => BitConverter.Int32BitsToSingle(value);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -22,5 +21,4 @@ namespace Capnp
|
|||||||
Segments = segments;
|
Segments = segments;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
@ -1,8 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
#nullable enable
|
|
||||||
namespace Capnp
|
namespace Capnp
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -228,5 +225,4 @@ namespace Capnp
|
|||||||
_ptrData = ((ulong)index << 32) | (ulong)PointerKind.Other;
|
_ptrData = ((ulong)index << 32) | (ulong)PointerKind.Other;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nullable restore
|
|
Loading…
x
Reference in New Issue
Block a user