Skip to content

Commit

Permalink
refactor: remove support for sync transport attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ADobin committed Sep 19, 2024
1 parent b87018f commit 8faead8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ namespace Microsoft.AppMagic.Transport
[AttributeUsage(AttributeTargets.Method)]
public class TransportMethodAttribute : Attribute
{
public TransportMethodAttribute(bool supportSynchronousClient = false, TransportBatchingMode batchingMode = TransportBatchingMode.Default, bool isParallel = false)
public TransportMethodAttribute(TransportBatchingMode batchingMode = TransportBatchingMode.Default, bool isParallel = false)
{
SupportSynchronousClient = supportSynchronousClient;
BatchingMode = batchingMode;
IsParallel = isParallel;
}
Expand All @@ -23,11 +22,6 @@ public TransportMethodAttribute(bool supportSynchronousClient = false, Transport
/// </summary>
public bool Deferred { get; }

/// <summary>
/// For back-compat, support blocking callers.
/// </summary>
public bool SupportSynchronousClient { get; }

/// <summary>
/// Defines batching.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,11 @@ namespace Microsoft.AppMagic.Transport
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class TransportPropertyAttribute : Attribute
{
public TransportPropertyAttribute(bool generateSynchronousSetterTemplateInProxyClass = false, bool useDiffSync = false)
public TransportPropertyAttribute(bool useDiffSync = false)
{
GenerateSynchronousSetterTemplateInProxyClass = generateSynchronousSetterTemplateInProxyClass;
UseDiffSync = useDiffSync;
}

/// <summary>
/// When defined, generates a synchronous setter method that redirects to "set{PropertyName}". This
/// allows the programmer to manually define how set calls should be marshalled. The user is still
/// responsible for defining the appropriate setter method in either the base class or original
/// C# class.
/// </summary>
public bool GenerateSynchronousSetterTemplateInProxyClass { get; }

/// <summary>
/// If the marked property is a <c>ITrackedCollection</c>, and it gets updated,
/// state synchronization will not send the entire collection to the client, only
Expand Down

0 comments on commit 8faead8

Please sign in to comment.