Beispiel #1
0
        public ChatRoomWebSocketHandler(IClusterClient client, IChatRoomRegistry registry, ILogger <ChatRoomWebSocketHandler> logger)
        {
            this.client   = client;
            this.registry = registry;
            this.logger   = logger;

            encoding = Encoding.UTF8;
            settings = new HessianSerializerSettings
            {
            };
        }
Beispiel #2
0
            public ChatChannel(
                ChatRoomService service,
                ClientWebSocket socket,
                IPrincipal principal,
                HessianSerializerSettings settings)
            {
                this.service   = service;
                this.socket    = socket;
                this.principal = principal;
                this.settings  = settings;

                cts = new CancellationTokenSource();
                //incomingSerializer = new DataContractHessianSerializer(typeof(IncomingChatMessage), settings);
                //outgoingSerializer = new DataContractHessianSerializer(typeof(OutgoingChatMessage), settings);
            }
Beispiel #3
0
 public HessianCall(MethodInfo methodInfo, HessianSerializerSettings settings = null)
 {
     this.methodInfo = methodInfo;
     this.settings   = settings ?? DefaultHessianSerializerSettings.Instance;
 }
Beispiel #4
0
 static DefaultHessianSerializerSettings()
 {
     Instance = new HessianSerializerSettings
     {
     };
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DataContractHessianSerializer" /> class to serialize or deserialize an object of the specified type and serializer settings.
 /// </summary>
 /// <param name="type">The type of the instance that is serialized or deserialized.</param>
 /// <param name="settings">The serializer settings.</param>
 public DataContractHessianSerializer(Type type, HessianSerializerSettings settings = null)
 {
     this.type = type;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataContractHessianSerializer" /> class to serialize or deserialize an object of the specified type and serializer settings.
 /// </summary>
 /// <param name="type">The type of the instance that is serialized or deserialized.</param>
 /// <param name="settings">The serializer settings.</param>
 public DataContractHessianSerializer(Type type, HessianSerializerSettings settings = null)
 {
     this.type     = type;
     this.settings = settings ?? DefaultHessianSerializerSettings.Instance;
 }