Exemple #1
0
        internal static RemoteDataObject GenerateClientSessionCapability(RemoteSessionCapability capability, Guid runspacePoolId)
        {
            PSObject data = GenerateSessionCapability(capability);

            data.Properties.Add(new PSNoteProperty("TimeZone", RemoteSessionCapability.GetCurrentTimeZoneInByteFormat()));
            return(RemoteDataObject.CreateFrom(capability.RemotingDestination, RemotingDataType.SessionCapability, runspacePoolId, Guid.Empty, data));
        }
Exemple #2
0
        internal static RemoteDataObject GenerateClientSessionCapability(
            RemoteSessionCapability capability,
            Guid runspacePoolId)
        {
            PSObject sessionCapability = RemotingEncoder.GenerateSessionCapability(capability);

            sessionCapability.Properties.Add((PSPropertyInfo) new PSNoteProperty("TimeZone", (object)RemoteSessionCapability.GetCurrentTimeZoneInByteFormat()));
            return(RemoteDataObject.CreateFrom(capability.RemotingDestination, RemotingDataType.SessionCapability, runspacePoolId, Guid.Empty, (object)sessionCapability));
        }