mirror of
https://github.com/Radarr/Radarr
synced 2026-01-02 05:36:55 +01:00
21 lines
834 B
C#
21 lines
834 B
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.
|
|
|
|
using System;
|
|
using System.Dynamic;
|
|
using System.Globalization;
|
|
|
|
namespace Microsoft.AspNet.SignalR.Hubs
|
|
{
|
|
internal class NullClientProxy : DynamicObject
|
|
{
|
|
public override bool TryGetMember(GetMemberBinder binder, out object result)
|
|
{
|
|
throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, Resources.Error_UsingHubInstanceNotCreatedUnsupported));
|
|
}
|
|
|
|
public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result)
|
|
{
|
|
throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, Resources.Error_UsingHubInstanceNotCreatedUnsupported));
|
|
}
|
|
}
|
|
}
|