.NET Format Style Fixes
This commit is contained in:
@@ -32,12 +32,14 @@ public class NotifierCallbacks(
|
||||
* Take our array of JSON message objects and cast them to JSON strings, so that they can then
|
||||
* be sent to client as NEWLINE separated strings... yup.
|
||||
*/
|
||||
_notifierController.NotifyAsync(tmpSessionID)
|
||||
.ContinueWith(messages => messages.Result.Select(message => string.Join("\n", jsonUtil.Serialize(message))))
|
||||
_notifierController
|
||||
.NotifyAsync(tmpSessionID)
|
||||
.ContinueWith(messages =>
|
||||
messages.Result.Select(message => string.Join("\n", jsonUtil.Serialize(message)))
|
||||
)
|
||||
.ContinueWith(text => httpServerHelper.SendTextJson(resp, text.Result));
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// TODO: removed from client?
|
||||
/// Handle push/notifier/get
|
||||
@@ -55,7 +57,9 @@ public class NotifierCallbacks(
|
||||
/// <returns></returns>
|
||||
public ValueTask<string> CreateNotifierChannel(string url, EmptyRequestData _, string sessionID)
|
||||
{
|
||||
return new ValueTask<string>(_httpResponseUtil.GetBody(_notifierController.GetChannel(sessionID)));
|
||||
return new ValueTask<string>(
|
||||
_httpResponseUtil.GetBody(_notifierController.GetChannel(sessionID))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -64,12 +68,9 @@ public class NotifierCallbacks(
|
||||
/// <returns></returns>
|
||||
public ValueTask<string> SelectProfile(string url, UIDRequestData info, string sessionID)
|
||||
{
|
||||
return new ValueTask<string>(_httpResponseUtil.GetBody(
|
||||
new SelectProfileResponse
|
||||
{
|
||||
Status = "ok"
|
||||
}
|
||||
));
|
||||
return new ValueTask<string>(
|
||||
_httpResponseUtil.GetBody(new SelectProfileResponse { Status = "ok" })
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user