예제 #1
0
 public RenderState CreateChild (
     object source,
     RemoteMemberInfo remoteMemberInfo = null)
     => new RenderState (
         Context,
         this,
         null,
         source,
         remoteMemberInfo: remoteMemberInfo);
예제 #2
0
 public static RenderState Create (
     object source,
     CultureInfo cultureInfo = null,
     RemoteMemberInfo remoteMemberInfo = null)
     => new RenderState (
         null,
         null,
         null,
         source,
         cultureInfo,
         remoteMemberInfo);
예제 #3
0
        public async Task <bool> SetMemberAsync(RemoteMemberInfo memberInfo, object value)
        {
            if (!ClientSession.Agent.IsConnected)
            {
                return(false);
            }

            return((await ClientSession.Agent.Api.SetObjectMemberAsync(
                        memberInfo.ObjectHandle,
                        memberInfo.MemberInfo,
                        value,
                        false)).Success);
        }
예제 #4
0
 RenderState (
     RendererContext context,
     RenderState parentState,
     object originatingSource,
     object source,
     CultureInfo cultureInfo = null,
     RemoteMemberInfo remoteMemberInfo = null)
 {
     Context = context;
     ParentState = parentState;
     OriginatingSource = originatingSource;
     Source = source;
     this.cultureInfo = cultureInfo;
     RemoteMember = remoteMemberInfo;
 }