public ChatRoomWebSocketHandler(IClusterClient client, IChatRoomRegistry registry, ILogger <ChatRoomWebSocketHandler> logger) { this.client = client; this.registry = registry; this.logger = logger; encoding = Encoding.UTF8; settings = new HessianSerializerSettings { }; }
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); }
public HessianCall(MethodInfo methodInfo, HessianSerializerSettings settings = null) { this.methodInfo = methodInfo; this.settings = settings ?? DefaultHessianSerializerSettings.Instance; }
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; }
/// <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; }